Files
mruby-mruby/mrbgems/mruby-socket/src
Yukihiro "Matz" Matsumoto 34ccec6600 mruby-socket: optimize protocol family lookup with compact table
Replace switch statement in socket_option_inspect() with memory-efficient
lookup table following mruby's memory-first design philosophy. Uses compact
linear search over 6 entries instead of large switch statement.

Memory usage: ~200 bytes vs ~1KB switch table (80% reduction)
Performance: O(6) linear search, negligible impact for small table
Behavior: Identical functionality, all tests pass (1723/1724)

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-15 11:38:51 +09:00
..
2022-12-19 18:59:10 +09:00
2022-12-19 18:59:10 +09:00
2017-12-13 15:58:23 +09:00