Click here to Skip to main content
15,880,392 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: 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 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
honey the codewitch24-Dec-20 9:46
mvahoney the codewitch24-Dec-20 9:46 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
PIEBALDconsult24-Dec-20 10:53
mvePIEBALDconsult24-Dec-20 10:53 
I think my parser allows that, it trusts that the file is well-formed and doesn't check.
I see no reason to raise an error for that unlikely situation.
Besides, with my parser, every JSONitem has a name (at least an empty one) and a value (and a type), so it doesn't matter whether one is (erroneously) provided or defaulted by my parser.

Now that I think about it more, I don't actually need the Stack.
I could just as easily do something like curr = curr.Parent to step back (up) a level of the tree.
And then the "stack" would be empty when curr is null -- or similar.

Eliminating the Stack probably won't provide a big improvement to the code though.
I'm quite certain any "slowness" is occurring at higher levels, and not in the parser itself.
And, of course, the database access is likely to be the tightest bottleneck.
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
honey the codewitch24-Dec-20 11:54
mvahoney the codewitch24-Dec-20 11:54 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
PIEBALDconsult24-Dec-20 12:27
mvePIEBALDconsult24-Dec-20 12:27 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
honey the codewitch24-Dec-20 13:00
mvahoney the codewitch24-Dec-20 13:00 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
PIEBALDconsult24-Dec-20 13:34
mvePIEBALDconsult24-Dec-20 13:34 
GeneralRe: Hey JSOP! Whoops I mean PIEBALDconsult! Sorry! Pin
honey the codewitch24-Dec-20 15:48
mvahoney the codewitch24-Dec-20 15:48 
GeneralDilbert OTD: working from home problems Pin
OriginalGriff23-Dec-20 0:27
mveOriginalGriff23-Dec-20 0:27 
GeneralRe: Dilbert OTD: working from home problems Pin
rnbergren23-Dec-20 3:51
rnbergren23-Dec-20 3:51 
GeneralRe: Dilbert OTD: working from home problems Pin
Slow Eddie24-Dec-20 2:18
professionalSlow Eddie24-Dec-20 2:18 
GeneralRe: Dilbert OTD: working from home problems Pin
Kirk 1038982124-Dec-20 8:15
Kirk 1038982124-Dec-20 8:15 
GeneralThe weird issues and workarounds we sometimes have to deal with Pin
Jacquers22-Dec-20 21:37
Jacquers22-Dec-20 21:37 
GeneralRe: The weird issues and workarounds we sometimes have to deal with PinPopular
Jörgen Andersson23-Dec-20 0:45
professionalJörgen Andersson23-Dec-20 0:45 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
OriginalGriff23-Dec-20 0:47
mveOriginalGriff23-Dec-20 0:47 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Jörgen Andersson23-Dec-20 2:55
professionalJörgen Andersson23-Dec-20 2:55 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Jacquers23-Dec-20 0:53
Jacquers23-Dec-20 0:53 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Jörgen Andersson23-Dec-20 2:52
professionalJörgen Andersson23-Dec-20 2:52 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Rob_P23-Dec-20 21:37
Rob_P23-Dec-20 21:37 
GeneralRe: The weird issues and workarounds we sometimes have to deal with Pin
Kirk 1038982124-Dec-20 8:22
Kirk 1038982124-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.