3 ms·
It's interesting to see the performance numbers for JSON parsing in the context of parsing performance specifically. I guess this is largely a domain specific d
by olliej 3y ago
It's interesting to see the performance numbers for JSON parsing in the context of parsing performance specifically. I guess this is largely a domain specific detail, as my experience was in the context of JS engines.
For JSC at least the costs of allocating and constructing the JS object graph rapidly dwarf the cost of the parsing itself for any non-trivial JSON structure (though parsing JSON is still sufficiently fast relative to actual JS that there's still a significant win for all JS execution in JSC to start with an attempt to parse the input as a slightly extended JSON syntax, due to the wonders of JSONP and people still using eval for json parsing).