Files
mruby-mruby/src
Yukihiro "Matz" Matsumoto 1de46b2051 cdump.c: use IREP_TT_SSTR for pool strings in mrbc -C output
pool strings generated by mrbc -C are C string literals inside
static const structs, which reside in ROM. mark them as
IREP_TT_SSTR (static) instead of IREP_TT_STR (dynamic) so the
VM uses mrb_str_new_static() and mrb_intern_static() instead of
mrb_str_new() and mrb_intern(). this avoids unnecessary
malloc+memcpy for string literals longer than the embed threshold,
especially on embedded platforms where mrb_ro_data_p() returns
FALSE.

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-23 00:00:25 +09:00
..
2024-04-22 18:00:27 +10:00
2026-01-01 13:18:33 +09:00
2016-05-09 17:19:47 +02:00