Skip to content

Commit 4504772

Browse files
edwinsmithfacebook-github-bot
authored andcommitted
driveby: std::unordered_map -> hphp_fast_map
Summary: why be slow when you can be fast? Reviewed By: ricklavoie Differential Revision: D52936151 fbshipit-source-id: df3661056eb4cd9b8f0b51fc5fc40cc1ff9abf0d
1 parent 45dcd74 commit 4504772

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hphp/runtime/vm/hackc-translator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "hphp/runtime/vm/preclass-emitter.h"
2626
#include "hphp/runtime/vm/type-alias-emitter.h"
2727
#include "hphp/runtime/vm/unit-gen-helpers.h"
28+
#include "hphp/util/hash-map.h"
2829
#include "hphp/zend/zend-string.h"
2930

3031
#include <folly/Range.h>
@@ -115,7 +116,7 @@ struct TranslationState {
115116

116117
// In whole program mode it isn't possible to lookup a litstr in the global
117118
// table while emitting, so keep a lookaside of litstrs seen by the assembler.
118-
std::unordered_map<Id, const StringData*> litstrMap;
119+
hphp_fast_map<Id, const StringData*> litstrMap;
119120

120121
// Max local id encountered. Must be unsigned to match u32 representation
121122
// in HackC.

0 commit comments

Comments
 (0)