mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
a217935e7d
Replace fixed 256-element hash array in mrb_state with adaptive approach: - Linear search for <=255 symbols (typical embedded use case) - Hash table allocated on-demand when symbols exceed threshold - Reduces mrb_state size by 1KB per instance (1068->36 bytes in symbol fields) - Configurable threshold via MRB_SYMBOL_LINEAR_THRESHOLD in mrbconf.h Co-authored-by: Claude <noreply@anthropic.com>