DescriptionRefactor Maps' code_cache
Most maps have a small code cache (often only one entry), so this patch
optimizes memory consumption of such cases by using plain FixedArrays,
only switching to CodeCacheHashTables when the number of cached entries
gets so large that linear-scan lookups get too slow.
On loading inbox.google.com, this gets the aggregate size of all maps'
code caches (there are about 13,600 of them) from 4300 KB to 970 KB.
Committed: https://crrev.com/31882103773436538fa929b1b867a6cb42fe72bf
Cr-Commit-Position: refs/heads/master@{#36681}
Patch Set 1 #Patch Set 2 : add test and rebase #Patch Set 3 : windows don't want no constexpr #
Messages
Total messages: 17 (9 generated)
|