diff options
author | Evan Martin <martine@danga.com> | 2011-09-12 17:17:11 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-09-12 18:46:18 (GMT) |
commit | f1139aff5deddacd899be064fad9ed5a185e7444 (patch) | |
tree | 2d293defa9fd2d257cb25a20d7a66c110fd1f50b /src/test.cc | |
parent | 0c8e0f761f55e78bdaaad8a92f39a724e81474bf (diff) | |
download | Ninja-f1139aff5deddacd899be064fad9ed5a185e7444.zip Ninja-f1139aff5deddacd899be064fad9ed5a185e7444.tar.gz Ninja-f1139aff5deddacd899be064fad9ed5a185e7444.tar.bz2 |
use StringPiece for makefile deps
Because of this, MakefileParser now returns pointers into the source
makefile string rather than allocating new strings. Despite needing
to take the result and stuff it into a new string anyway to canonicalize
it, this takes another 50ms or so off the null Chrome build, likely
due to the vector used in MakefileParser changing to a type that doesn't
use any allocations.
(I also experimented with making the vector reserve an initial size but
didn't see any performance impact.)
Diffstat (limited to 'src/test.cc')
0 files changed, 0 insertions, 0 deletions