mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
f7988c9339
Change default stack growth from linear (+128) to exponential (1.5x). This reduces reallocation frequency while maintaining reasonable memory usage. The minimum growth is still MRB_STACK_GROWTH (128) to ensure small programs don't over-allocate. MRB_STACK_EXTEND_DOUBLING (2x growth) remains available for maximum performance when memory is not a concern. Co-authored-by: Claude <noreply@anthropic.com>