matches() ran on every scan decision and materialized an Array of the literal per call, the hottest comparison in the parse profile. It now walks the literal directly. Parse time on the 4.2 MB benchmark corpus drops 16 percent (0.49 s to 0.41 s, libxml2 ratio 30x to 26x); profile findings and the optimization log recorded in docs/benchmarks.md. |
||
|---|---|---|
| .. | ||
| rules | ||
| benchmarks.md | ||