Perf: Put in a portable std::hash that works with the pool. This turns on the 10-15% perf gain.

This commit is contained in:
John Kessenich 2015-07-20 23:59:32 -06:00
parent 96f4911351
commit 1056110c30
3 changed files with 31 additions and 13 deletions

View file

@ -192,7 +192,6 @@ public:
};
MemoryPool *pool;
// need portable hash typedef TUnorderedMap<int, Symbol*> TSymbolMap;
typedef TMap<int, Symbol*> TSymbolMap;
TSymbolMap symbols; // this has light use... just defined macros
@ -437,8 +436,7 @@ protected:
//
// From PpAtom.cpp
//
// need portable TStringHash typedef TUnorderedMap<const TString, int, TStringHash> TAtomMap;
typedef TMap<const TString, int> TAtomMap;
typedef TUnorderedMap<TString, int> TAtomMap;
typedef TVector<const TString*> TStringMap;
TAtomMap atomMap;
TStringMap stringMap;