summaryrefslogtreecommitdiffstats
path: root/src/getopt.h
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-02-11 20:19:01 (GMT)
committerNico Weber <nicolasweber@gmx.de>2014-02-11 20:24:32 (GMT)
commitdd8c1d84699bb6b45ffa1a529d53fe2273c8b427 (patch)
treeaf50cf5018ce54c3e3b97d9102d71b332dd4196e /src/getopt.h
parent84986af6fdeae3f649f2bf884b20f644bc370e48 (diff)
downloadNinja-dd8c1d84699bb6b45ffa1a529d53fe2273c8b427.zip
Ninja-dd8c1d84699bb6b45ffa1a529d53fe2273c8b427.tar.gz
Ninja-dd8c1d84699bb6b45ffa1a529d53fe2273c8b427.tar.bz2
Allocate per-edge BindingEnvs lazily.
In chrome, only 2000 of 22000 build edges have bindings. A BindingEnv is 64 bytes, so allocating these only when needed saves a bit over 1 MB of memory. Since env chains are shorter for lookups, builds also become a tiny bit faster.
Diffstat (limited to 'src/getopt.h')
0 files changed, 0 insertions, 0 deletions