mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-10 04:09:53 -06:00
`comment_export_discovery_scales_with_unrelated_markers` timed `notes` on 2,000 and 16,000 markers through /proc/thread-self/schedstat. That count moves only at a scheduler tick or switch, so a 17 µs baseline read as nothing or a whole tick, and gate failed on linear code (58.68x on PR #3228's run 41932894607). As #5608 did for the balloon anchors, the test now counts the characters the walk visits (`wordcraft_doc::work`): 4,010 -> 32,010 steps, 8.0x, every run. A prefix scan per marker injected into `notes` counts 63.9x and fails it. `work::steps` becomes public so a crate that walks a paragraph's text itself can count it; outside tests it is still nothing. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>