diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-06-15 04:52:17 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-06-15 19:55:30 (GMT) |
commit | 5be83d0b2e4909f39998c98dde9a1393d8e5f1c2 (patch) | |
tree | 0fe7e6a270543c5142de887963c32682c7ec2545 /src/test.h | |
parent | 8f686fae940e9d2dfb86cb8cbb5ee11176ae03de (diff) | |
download | Ninja-5be83d0b2e4909f39998c98dde9a1393d8e5f1c2.zip Ninja-5be83d0b2e4909f39998c98dde9a1393d8e5f1c2.tar.gz Ninja-5be83d0b2e4909f39998c98dde9a1393d8e5f1c2.tar.bz2 |
Only store command hashes in the build log.
.build_log load time 350ms -> 17ms, filesize 197MB -> 1.6MB on
Mac. On Windows, it's 500ms -> 20ms.
Makes the build log a lot less useful for scripts, but there could
be a tool for use cases that need log information. A prototype of
such a tool is in https://github.com/nico/ninja/commit/1b243d311
The hash function is 64bit murmurhash2. Assuming that that different
commands get the same hash only by chance, it's is very unlikely
for two different commands to hash to the same value with a 64bit
hash.
Diffstat (limited to 'src/test.h')
-rw-r--r-- | src/test.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -35,6 +35,7 @@ struct StateTestWithBuiltinRules : public testing::Test { }; void AssertParse(State* state, const char* input); +void AssertHash(const char* expected, uint64_t actual); /// An implementation of DiskInterface that uses an in-memory representation /// of disk state. It also logs file accesses and directory creations |