Closed nnicandro closed 6 years ago
line-number-at-pos grows linearly with the number of lines in a buffer so cache the computation of the number of lines and only call line-number-at-pos when the buffer is narrowed to new output produced by Global that has not been processed yet.
line-number-at-pos
It is probably better to use count-lines directly. what do you think?
count-lines
That is indeed better.
line-number-at-pos
grows linearly with the number of lines in a buffer so cache the computation of the number of lines and only callline-number-at-pos
when the buffer is narrowed to new output produced by Global that has not been processed yet.