Cache the ranges_ vector and share the ranges_ vector
across histograms if the ranges in the ranges_ vector
is same. This change saves around 100k of memory in the
browser (around 400 histograms sharing the same ranges_
vector and each ranges_ vector has around 50 elements).
In each renderer process we are sharing ranges_ vector
for around 30 histograms (a savings of 6k of memory).
R=jar
TEST=histogram unit tests.
Review URL: http://codereview.chromium.org/7696017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106425 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 908de52f3505d2f7b10851e731bb5a61912d6b74
3 files changed