Skip to content

Improve performance of scrolling back in history

Using line lengths, moving up in scroll history would require traversing line lengths adding them until getting the start of the required line. Using line starts, removing lines as they scroll past history would require traversing the whole vector and updating the line starts. A better option is storing biased line starts, which doesn't require any traversing of the vector for common operations (hopefully reflowing is not a common operation).

Merge request reports