Description[Parser] Added SMI cache
With the very same SMIs making up a big chunk
of the parser zone (especially for asm.js) it
makes sense to cache the AstValues for them.
This is not ideal yet, but already saves
hundreds (sic!) MBs of memory for Unity games.
Committed: https://crrev.com/da3e22252585a72a3c17cff93378d67fe1b9b497
Cr-Commit-Position: refs/heads/master@{#40866}
Patch Set 1 #Patch Set 2 : Added smi cache to save memory #Patch Set 3 : Added smi cache to save memory #Patch Set 4 : Changed signature to uint #
Total comments: 4
Patch Set 5 : Using a number literal instead, will end up as a smi anyway, but not hitting the cache #Patch Set 6 : Changed signature to uint #
Messages
Total messages: 23 (16 generated)
|