Eliah-Lakhin / lady-deirdre

Compiler front-end foundation technology.
http://lady-deirdre.lakhin.com/
446 stars 13 forks source link

LineIndex Improvements #25

Open Eliah-Lakhin opened 1 month ago

Eliah-Lakhin commented 1 month ago

The LineIndex object, responsible for tracking the absolute offsets of lines, is currently backed by an ordered vector of offsets.

This implementation becomes inefficient with large files (hundreds of thousands of lines).

To improve performance, the implementation should be updated by replacing the single vector with a linked list of vectors, or possibly even a B+Tree map.