Avoid rebuilding source lines during diagnostic rendering

#1 · closed · 1 comments

View on GitHub ↗

jonaprieto

Rendering one source repeatedly calls `Source.lines` and `Source.lineAt`, which re-encodes and re-splits the same source. Compute the byte-backed lines once per rendered source and reuse them. Preserve current output and add a focused regression or benchmark check.

Comments

jonaprieto

Fixed and verified in 96f51db.