summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 16:49:35 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-12 16:49:35 +0000
commit3b6711ea37b8f4b1b4d5c0ceca20f8bc90228d92 (patch)
tree2e5d58d6483eff4a87cd2aedd5528a120ef0e553 /build
parentf691f0e726229cf1150d2f04310d0d41be36f98c (diff)
downloadchromium_src-3b6711ea37b8f4b1b4d5c0ceca20f8bc90228d92.zip
chromium_src-3b6711ea37b8f4b1b4d5c0ceca20f8bc90228d92.tar.gz
chromium_src-3b6711ea37b8f4b1b4d5c0ceca20f8bc90228d92.tar.bz2
40% speed up in parsing the /proc/<pid>/smaps file by changing StringTokenizer. What used to take 10ms to parse now takes 6ms.
- Profiling showed that doing the additional work to work with quotes added a bit of runtime, but most users don't use the optional quotes functionality. This speed parsing up by 20% by switching to a fast-path implementation, reverting to the slower path when necessary. - Eliminate temporary copies of tokens. This speeds up GetWorkingSetKBytes by another 20%. BUG=40033 TEST=Existing StringTokenizerTests. Review URL: http://codereview.chromium.org/1997017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47038 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
0 files changed, 0 insertions, 0 deletions