Bun parity gap confirmed by the pathological autolink case in js/bun/md/md-edge-cases.test.ts.
Home recounts every opening and closing parenthesis over the entire candidate URL once for each trailing unmatched close parenthesis. A two-million-character suffix is therefore quadratic. Bun live Rust counts once, then decrements the close count while trimming the suffix, preserving the same GFM result in linear time.
Scope:
- port Bun live single-pass parenthesis counting
- retain balanced and one-extra-closing-parenthesis semantics
- verify the original two-million-character corpus workload under the fixed memory guard
Parent: #66