Click here to Skip to main content
15,881,812 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 2:54
professionalSlacker00723-Dec-20 2:54 
GeneralRe: I think my article is too long :( Pin
honey the codewitch23-Dec-20 2:58
mvahoney the codewitch23-Dec-20 2:58 
GeneralRe: I think my article is too long :( Pin
Slacker00723-Dec-20 3:03
professionalSlacker00723-Dec-20 3:03 
GeneralRe: I think my article is too long :( Pin
honey the codewitch23-Dec-20 3:06
mvahoney the codewitch23-Dec-20 3:06 
GeneralRe: I think my article is too long :( Pin
Randor 23-Dec-20 3:07
professional Randor 23-Dec-20 3:07 
GeneralRe: I think my article is too long :( Pin
honey the codewitch23-Dec-20 3:09
mvahoney the codewitch23-Dec-20 3:09 
GeneralRe: I think my article is too long :( Pin
Randor 23-Dec-20 3:27
professional Randor 23-Dec-20 3:27 
GeneralRe: I think my article is too long :( Pin
honey the codewitch23-Dec-20 3:32
mvahoney the codewitch23-Dec-20 3: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 3:14
professionalGreg Utas23-Dec-20 3:14 
GeneralRe: I think my article is too long :( Pin
honey the codewitch23-Dec-20 3:20
mvahoney the codewitch23-Dec-20 3:20 
GeneralRe: I think my article is too long :( Pin
Nelek23-Dec-20 4:35
protectorNelek23-Dec-20 4:35 
GeneralHey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
honey the codewitch23-Dec-20 1:51
mvahoney the codewitch23-Dec-20 1:51 
GeneralRe: Hey JSOP! Pin
#realJSOP23-Dec-20 2:05
mve#realJSOP23-Dec-20 2:05 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 2:06
mvahoney the codewitch23-Dec-20 2:06 
GeneralRe: Hey JSOP! Pin
#realJSOP23-Dec-20 2:26
mve#realJSOP23-Dec-20 2:26 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 2:38
professionalJörgen Andersson23-Dec-20 2:38 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 2:40
mvahoney the codewitch23-Dec-20 2:40 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 2:41
professionalJörgen Andersson23-Dec-20 2:41 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 2:42
mvahoney the codewitch23-Dec-20 2:42 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 2:43
professionalJörgen Andersson23-Dec-20 2:43 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 2:44
mvahoney the codewitch23-Dec-20 2:44 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 2:45
professionalJörgen Andersson23-Dec-20 2:45 
GeneralRe: Hey JSOP! Pin
honey the codewitch23-Dec-20 2:47
mvahoney the codewitch23-Dec-20 2:47 
GeneralRe: Hey JSOP! Pin
Jörgen Andersson23-Dec-20 2:48
professionalJörgen Andersson23-Dec-20 2:48 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
PIEBALDconsult24-Dec-20 8:22
mvePIEBALDconsult24-Dec-20 8: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.