4 ms·
Well, you beat json-parser on SLOC. :-) Main differences are that you use recursion instead of a stack, and that you dynamically resize your buffers as you par
by udp 14y ago
Well, you beat json-parser on SLOC. :-)
Main differences are that you use recursion instead of a stack, and that you dynamically resize your buffers as you parse (whereas json-parser passes through the JSON twice so that it knows exactly how much memory to allocate).