diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-08-19 20:39:34 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-08-19 20:39:34 +0900 |
| commit | ca295a2c237dab1a1e69b7599a2fa66af466b7d3 (patch) | |
| tree | 96d0bcdbc668d95170b6809317f6a5a6d0cecbf3 /include | |
| parent | 7f8b30261fede50cd82ddf2095ab6c38a5889501 (diff) | |
| download | mruby-ca295a2c237dab1a1e69b7599a2fa66af466b7d3.tar.gz mruby-ca295a2c237dab1a1e69b7599a2fa66af466b7d3.zip | |
symbol.c: reduce memory by avoiding alignment gaps.
In additions:
* use bitmap for flags
* BER integer compression for length
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h index 4d2b65254..2a6bc7753 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -268,7 +268,9 @@ typedef struct mrb_state { #endif mrb_sym symidx; - struct symbol_name *symtbl; /* symbol table */ + const char **symtbl; + uint8_t *symlink; + uint8_t *symflags; mrb_sym symhash[256]; size_t symcapa; #ifndef MRB_USE_ALL_SYMBOLS |
