mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
symbol.c: reduce memory by avoiding alignment gaps.
In additions: * use bitmap for flags * BER integer compression for length
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user