optimize CanonicalizePath
authorEvan Martin <martine@danga.com>
Sat, 23 Apr 2011 00:03:15 +0000 (17:03 -0700)
committerEvan Martin <martine@danga.com>
Sat, 23 Apr 2011 00:06:55 +0000 (17:06 -0700)
commitf67b7c25008b1777600b8e8a35a847bdcf3bc4bc
tree5317ba28e98f26ebb141572a7cf2c28e078fe5d9
parente587ab486e9e448c24b78f34ec3935efc1df50ae
optimize CanonicalizePath

Null build of Chrome:
  before I added extra calls to CanonicalizePath: 1.25s.
  with extra calls to CanonicalizePath: 1.35s.
  with new CanonicalizePath: 1.05s.

And now CanonicalizePath isn't hot on profiles anymore.
src/util.cc
src/util.h