… | … | ||
---|---|---|---|
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include <cstring> | 27 | #include <cstring> |
28 | #include <cstdlib> | 28 | #include <cstdlib> |
29 | #include <glib.h> | 29 | #include <glib.h> |
30 | #include <unordered_set> | ||
31 | 30 | ||
31 | #include <flat_hash_map.hpp> | ||
32 | |||
32 | #include "global.h" | 33 | #include <global.h> |
33 | 34 | ||
34 | size_t shstr_alloc; | 35 | size_t shstr_alloc; |
35 | 36 | ||
36 | typedef std::unordered_set <const char *, str_hash, str_equal, slice_allocator<const char *> > HT; | 37 | typedef ska::flat_hash_set<const char *, str_hash, str_equal, slice_allocator<const char *>> HT; |
37 | 38 | ||
38 | static HT ht; | 39 | static HT ht; |
39 | static int next_gc; | 40 | static int next_gc; |
40 | 41 | ||
41 | #define NUM_INT 3 | 42 | #define NUM_INT 3 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |