diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-01-24 17:57:12 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-02-06 22:07:11 +0900 |
| commit | 02fbb2c21134ad0e8df0b723a4b11f7d7e21edcd (patch) | |
| tree | f77366dacd820c28141847443e6059e5f9d4e3df /include/mruby.h | |
| parent | 1076bebde77922766d75a440f9dc3352c467f772 (diff) | |
| download | mruby-02fbb2c21134ad0e8df0b723a4b11f7d7e21edcd.tar.gz mruby-02fbb2c21134ad0e8df0b723a4b11f7d7e21edcd.zip | |
Remove symbol hash table from `mrb_state` structure.
Use linear search instead. Number of symbols is usually small (<1K), so
we don't need performance boost from hash tables. In our benchmark
measurement, hash tables consumes 790KB for `build/full-debug/mrbtest`.
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h index 8c8360784..7fe2330be 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -239,7 +239,6 @@ typedef struct mrb_state { #endif mrb_sym symidx; - struct kh_n2s *name2sym; /* symbol hash */ struct symbol_name *symtbl; /* symbol table */ size_t symcapa; |
