[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: line numbers
From: |
suvayu ali |
Subject: |
Re: line numbers |
Date: |
Mon, 4 Jun 2012 17:28:31 +0200 |
On Mon, Jun 4, 2012 at 4:56 PM, Alp Aker <alptekin.aker@gmail.com> wrote:
> On Mon, Jun 4, 2012 at 9:55 AM, suvayu ali <fatkasuvayu+linux@gmail.com>
> wrote:
>
>> A caveat. As far as I know linum mode shows line numbers using overlays.
>> This can be very expensive if the file is large (e.g. a log file, a
>> journal file etc). If possible I would advice the OP to adapt to not
>> using in-buffer line numbers and rely on line-number-mode for line
>> numbers on the mode line instead.
>
> linum-mode only creates as many overlays as is needed to cover that
> portion of a buffer that's visible at a given time; it removes them
> from locations that are no longer visible. As a result, its
> performance is independent of buffer size.
In the real world things can be very different. ;)
AFAIR, there is a long history of Heisenbug like issue with linum-mode
and large org-mode files. If you are interested you can check the
org-mode archive.
--
Suvayu
Open source is the future. It sets us free.