[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Native display of line numbers
From: |
Stefan Monnier |
Subject: |
Re: Native display of line numbers |
Date: |
Sat, 17 Jun 2017 17:16:49 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
> nlinum performed so poorly in my benchmarks that I was ashamed of
> publishing the data. The benchmark entails scrolling through xdisp.c
> one line at a time.
Oh, yes, I think this is the case where there are too many overlays.
There's hope that the new tree-based overlays representation would solve
this problem, but I haven't actually checked.
There are also other ways to circumvent this performance problem, by
flushing the undisplayed overlays every once in a while. I have some
code for that in nlinum.el, tho it's commented out, because it ends up
triggering re-fontification of the code later on (because currently
jit-lock can't be told to refresh nlinum without also refreshing all
other clients such as font-lock). It'd be good to improve jit-lock so
this can be done better, but clearly this is one of those cases where
the more you progress, the more work you have to do.
Stefan
Re: Native display of line numbers, Alan Mackenzie, 2017/06/17