DescriptionOptimize memory use of registered histograms.
Prior to this change, all histogram names would be stored
twice - once in each Histogram object and another time as
the key of the histograms map. This change eliminates the
second copy by making the map key be a reference to the
name string within the Histogram object.
In my local testing, this saved about 35k of memory in the
browser process and around 2k-4k in each sub-process.
BUG=500619
Committed: https://crrev.com/33d9fd6321af0d2905adb9f5168d853e3b45248c
Cr-Commit-Position: refs/heads/master@{#334481}
Patch Set 1 #Patch Set 2 : Remove code to print size. #Patch Set 3 : Improve comments. #
Messages
Total messages: 9 (3 generated)
|