Chromium Code Reviews
DescriptionOptimize VM JSON parser for speed and memory use.
Large JSON structures are likely to have many objects with similar structure.
This change keeps the structure separate from the values, and a JSON object
is a map backed by the structure (the "hidden class") and a list of values.
Any modification of the object/map will make it fall back to a linked hash map.
Caching might need tweaking (if we want caching at all).
The hidden class approach does cause an overhead for unstructured data, but
a memory saving for structured data.
BUG= http://dartbug.com/16692
Patch Set 1 #Patch Set 2 : Fix optimisitic optimization. #Patch Set 3 : Typo in type. #
Total comments: 10
Patch Set 4 : Remove parser optimizations to separate CL. #Patch Set 5 : Add more tests. #
Total comments: 12
Messages
Total messages: 13 (0 generated)
|
|||||||||||||||||||||||||||||||||||||