mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
49dff412b5
split mrb_obj_alloc() into type-validation wrapper and allocation core (mrb_obj_alloc_core). internal callers (mrb_proc_new, mrb_env_new) use the core directly, skipping 15+ lines of type validation per allocation. most impactful for workloads with heavy Proc/Env allocation (lambda calculus, block-intensive code). Co-authored-by: Claude <noreply@anthropic.com>