Click here to Skip to main content
15,507,293 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I think my article is too long :( Pin
Slacker00723-Dec-20 3:54
professionalSlacker00723-Dec-20 3:54 
GeneralRe: I think my article is too long :( Pin
honey the codewitch23-Dec-20 3:58
mvahoney the codewitch23-Dec-20 3:58 
GeneralRe: I think my article is too long :( Pin
Slacker00723-Dec-20 4:03
professionalSlacker00723-Dec-20 4:03 
GeneralRe: I think my article is too long :( Pin
honey the codewitch23-Dec-20 4:06
mvahoney the codewitch23-Dec-20 4:06 
GeneralRe: I think my article is too long :( Pin
Randor 23-Dec-20 4:07
professional Randor 23-Dec-20 4:07 
GeneralRe: I think my article is too long :( Pin
honey the codewitch23-Dec-20 4:09
mvahoney the codewitch23-Dec-20 4:09 
GeneralRe: I think my article is too long :( Pin
Randor 23-Dec-20 4:27
professional Randor 23-Dec-20 4:27 
GeneralRe: I think my article is too long :( Pin
honey the codewitch23-Dec-20 4:32
mvahoney the codewitch23-Dec-20 4:32 
Yeah I don't use specialized instructions because this isn't about bit twiddling, but coming up with an algorithmic improvement over traditional JSON processing.

The other thing about my library is its priority is efficient RAM use. It's second priority is raw speed.

Although, I'd still stack it up against most if not any JSON processor in terms of speed because it does partial parsing. Also in terms of when it does parse, my library's primary speed advantage is it only reads a string once, not twice like most libraries do - once to get it off the "disk" (input source), and then again to compare it. It does all string comparisons in a streaming fashion right off the "disk" (input source) like that.

I'd be curious about simdjson because it's the only one I've found that might be competitive, but my problem with it is RAM use. It's demand/lazy parsed, but it still parses into memory. I don't. The only time my values get into memory is if they're specifically requested from a query. Everything else is streamed.

It's a fully validating parser. Mine isn't, typically, although you *can* use it that way - it's just slower. simdjson probably tans its hide when it comes to validated parsing because I did nothing really to optimize it.
Real programmers use butterflies


modified 23-Dec-20 9:56am.

GeneralRe: I think my article is too long :( Pin
Greg Utas23-Dec-20 4:14
mveGreg Utas23-Dec-20 4:14 
GeneralRe: I think my article is too long :( Pin
honey the codewitch23-Dec-20 4:20
mvahoney the codewitch23-Dec-20 4:20 
GeneralRe: I think my article is too long :( Pin
Nelek23-Dec-20 5:35
protectorNelek23-Dec-20 5:35 
GeneralHey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
honey the codewitch23-Dec-20 2:51
mvahoney the codewitch23-Dec-20 2:51 
GeneralRe: Hey JSOP! Pin
#realJSOP23-Dec-20 3:05
mva#realJSOP23-Dec-20 3:05 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 3:06
mvahoney the codewitch23-Dec-20 3:06 
GeneralRe: Hey JSOP! Pin
#realJSOP23-Dec-20 3:26
mva#realJSOP23-Dec-20 3:26 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 3:38
professionalJörgen Andersson23-Dec-20 3:38 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 3:40
mvahoney the codewitch23-Dec-20 3:40 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 3:41
professionalJörgen Andersson23-Dec-20 3:41 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 3:42
mvahoney the codewitch23-Dec-20 3:42 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 3:43
professionalJörgen Andersson23-Dec-20 3:43 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 3:44
mvahoney the codewitch23-Dec-20 3:44 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 3:45
professionalJörgen Andersson23-Dec-20 3:45 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 3:47
mvahoney the codewitch23-Dec-20 3:47 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 3:48
professionalJörgen Andersson23-Dec-20 3:48 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
PIEBALDconsult24-Dec-20 9:22
professionalPIEBALDconsult24-Dec-20 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

How would you describe your current job?
Fighting dragons everyday or clicking the same boxes on the same forms, day after day?
  Results   1,027 votes