[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: line numbers
From: |
Alp Aker |
Subject: |
Re: line numbers |
Date: |
Mon, 4 Jun 2012 10:56:31 -0400 |
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.