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/util.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/util.h')
-rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -77,6 +77,7 @@ double GetLoadAverage(); #define fileno _fileno #define unlink _unlink #define chdir _chdir +#define strtoull _strtoui64 #endif #ifdef _WIN32 |