summaryrefslogtreecommitdiffstats
path: root/src/ninja.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2010-12-17 23:00:47 (GMT)
committerEvan Martin <martine@danga.com>2010-12-17 23:00:47 (GMT)
commitb0f931f18d4ce98ebbc712d0caa8368b68137028 (patch)
treee9d5fc494309b61198745364f54eb7467325a609 /src/ninja.h
parentcd5dd9e74df2accca52c85cbb1c0e7075660919e (diff)
downloadNinja-b0f931f18d4ce98ebbc712d0caa8368b68137028.zip
Ninja-b0f931f18d4ce98ebbc712d0caa8368b68137028.tar.gz
Ninja-b0f931f18d4ce98ebbc712d0caa8368b68137028.tar.bz2
use hash_map for paths; much faster builds
Diffstat (limited to 'src/ninja.h')
-rw-r--r--src/ninja.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ninja.h b/src/ninja.h
index ecfb2d0..fb0b7fb 100644
--- a/src/ninja.h
+++ b/src/ninja.h
@@ -2,7 +2,6 @@
#define NINJA_NINJA_H_
#include <algorithm>
-#include <map>
#include <queue>
#include <set>
#include <string>
@@ -13,6 +12,7 @@
using namespace std;
#include "eval_env.h"
+#include "hash_map.h"
int ReadFile(const string& path, string* contents, string* err);
@@ -135,7 +135,7 @@ struct Edge {
};
struct StatCache {
- typedef map<string, FileStat*> Paths;
+ typedef hash_map<string, FileStat*> Paths;
Paths paths_;
FileStat* GetFile(const string& path);
void Dump();