Files
ruby/prism
HASUMI Hitoshi f2f9b55680 [ruby/prism] Let an embedder set PM_CONSTANT_POOL_MIN_CAPACITY
The constant pool starts at source size / 120 entries, 4 at the least,
and doubles at a load of 3/4; each outgrown pair of arrays stays in the
metadata arena. An embedder that interns a fixed set of names into the
pool at every parse (mruby's compiler puts its 58 presyms there, as its
symbol table) grows a short program's pool from 4 to 128 and leaves
about 3 KB behind, as much as the pool itself. With the minimum under
#ifndef it can build with -DPM_CONSTANT_POOL_MIN_CAPACITY=128: measured
on a 32-bit build with 2 KB arena blocks, parsing one REPL line then
holds 6 KB instead of 10 KB. The default stays 4.

https://github.com/ruby/prism/commit/7ed8c71c59
2026-10-26 15:44:00 +00:00
..
2026-10-24 20:17:09 +00:00
2026-10-20 03:12:57 +00:00
2026-10-19 17:30:05 -04:00
2026-10-20 03:12:57 +00:00
2026-10-12 13:01:34 -04:00
2026-10-24 20:17:09 +00:00
2026-10-21 14:45:46 +00:00
2026-10-20 03:12:57 +00:00
2026-10-20 03:12:57 +00:00
2026-10-20 03:12:57 +00:00
2026-10-20 03:12:57 +00:00
2026-10-20 21:33:59 +00:00
2026-10-20 03:12:57 +00:00
2026-10-20 03:12:57 +00:00
2026-10-17 00:51:35 +00:00
2026-10-20 03:12:57 +00:00
2026-10-12 15:11:45 +00:00
2026-10-21 14:45:46 +00:00
2026-10-19 17:30:05 -04:00