Files
ruby/ext/coverage
Yusuke EndohandClaude Fable 5 c9e9101403 Cache a template of the method coverage result [Bug #22250]
Likewise for method coverage: walking me_set and cme2counter and hashing
the array keys on every peek dominated the cost.  Maintain
{ path => { key => me or [me, ...] } } incrementally (both hashes are
append-only) and fill in the counts from cme2counter on each peek.
Extract rb_coverage_method_data_of() from thread.c for that.

10k methods: 24 ms -> 0.7 ms per peek.  rack's test suite with SimpleCov
per-test tracking (lines+branches+methods): 30 s -> 8.4 s.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-21 16:50:27 +09:00
..
2015-12-16 05:31:54 +00:00