summaryrefslogtreecommitdiffstats
path: root/src/hash_map.h
Commit message (Collapse)AuthorAgeFilesLines
* Add NINJA_FALLTHROUGH macroStefan Becker2018-04-111-0/+3
| | | | | | | | Borrow macro implementation from OpenSSL code. Add the macro after each fallthrough switch case to indicate our intention to the compiler. This silences GCC -Wimplicit-fallthrough warnings, which is implied by GCC 7.x -Wextra.
* Optimize StringPiece hash mapFredrik Medley2015-09-031-1/+1
| | | | | | Replace strncmp with memcmp to improve performance. Signed-off-by: Fredrik Medley <fredrik.medley@gmail.com>
* Try to simplify d1e6a29 a bit.Nico Weber2015-01-041-3/+3
|
* Remove unused hash<std::string>.Nico Weber2015-01-041-9/+0
| | | | | ExternalStringHashMap used to store std::strings long ago. Since it doesn't anymore, this specialization isn't needed. No behavior change.
* Fix compilation errors on Visual Studio 2015 (_MSC_VER 1900).Beren Minor2014-12-311-2/+19
|
* Fix compilation on VS2013Scott Graham2013-10-181-0/+1
|
* Minor style fixes, no behavior change.Nico Weber2013-08-231-1/+1
|
* Fix murmur hash implementations to work on strict alignmentMatthew Dempsky2013-07-081-1/+3
| | | | architectures like OpenBSD/mips64el and OpenBSD/hppa64.
* Fix formattingRobert Iannucci2012-11-301-2/+2
|
* windows: fix size_t<->int conversions in ninja.exeEvan Martin2012-08-101-1/+1
|
* fix hash_map StringPiece comparatorScott Graham2012-07-311-3/+3
|
* Revert "Make StringPiece data members private."Nico Weber2012-07-281-1/+1
| | | | | | This reverts commit 904c9610fe66c4f4bd63a07d6f057c8603d24394. The commit caused issue #380, this revert fixes it. The revert also makes the test from the previous commit pass.
* also build with msvcPeter Kümmel2012-07-271-3/+3
|
* Make StringPiece data members private.Thiago Farina2012-06-301-1/+1
| | | | Signed-off-by: Thiago Farina <tfarina@chromium.org>
* decide on murmur hash, delete stl hashEvan Martin2012-01-121-18/+4
| | | | | | | A nice thing about working on Google: a C++ expert who happened to be writing a proposal on hashing for the next C++ version wandered into my office. He seemed to think using Murmur here is fine.
* make new hash work on windowsEvan Martin2012-01-111-4/+14
|
* back to murmur hashEvan Martin2012-01-091-7/+7
|
* more stringpieceEvan Martin2012-01-091-1/+1
|
* murmur -> stl hashEvan Martin2012-01-091-1/+10
|
* convert ExternalStringHash to use StringPieceEvan Martin2012-01-091-16/+44
|
* Changes to hash_map to make it build with MSVC's versionFrances Buontempo2012-01-031-5/+12
|
* generalize the pattern of hash_map<const char*, ...>, use in BuildLogEvan Martin2011-09-121-0/+29
| | | | | | Refactor the code in StatCache for use in BuildLog. Now both use hash tables where the keys are const char*. Removes another 30ms from Chrome no-op builds.
* [windows] extend hash_map.h for Windows hash_mapSergey Nenakhov2011-04-231-0/+9
|
* Add missing CPP guards.Nicolas Despres2011-03-221-0/+5
|
* add copyrightsEvan Martin2011-02-061-0/+14
|
* use hash_map for paths; much faster buildsEvan Martin2010-12-171-0/+12