From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alp Aker Newsgroups: gmane.emacs.help Subject: Re: line numbers Date: Mon, 4 Jun 2012 10:56:31 -0400 Message-ID: References: <20120603181838.GA2517@mark-laptop> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1338826422 15147 80.91.229.3 (4 Jun 2012 16:13:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2012 16:13:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Andrew Michael Levin To: suvayu ali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 04 18:13:41 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SbZuU-0005wg-Pa for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2012 18:13:38 +0200 Original-Received: from localhost ([::1]:48571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbZuU-00056i-F3 for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jun 2012 12:13:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbYi0-0007EN-NR for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 10:56:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbYhu-0003Ta-Nd for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 10:56:40 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:50315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbYhu-0003RO-Gd for help-gnu-emacs@gnu.org; Mon, 04 Jun 2012 10:56:34 -0400 Original-Received: by yenm7 with SMTP id m7so3559836yen.0 for ; Mon, 04 Jun 2012 07:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7GGiSGXqXQNpdy8+EQZZLHqm0nhVRaW8HPg8lA65Ls0=; b=riHvdXXxc6f8pGknRTP9IiyPzZ9UUF9E47mfHWjV+5n3vQCHZYQ0dghfGxt3PbSGj3 WFZoRQbPGyoGWCni1oO+ME6Jnki7zrI7EgtH+s8yt0FzD2BANN/Yl3mjz2NMwLzuciZ6 oIwx1/EhSo1CHs6gVYhCb/z8H8GW/amdEQJoj9LI+jE6sLDzkbs13QUIyYXKb+nEgGuW +xkp6MNehs/25Tcty70Wz40O3pk7+i2klN7sPrqx8wQDl89upLbb1NG2xxbmpe+0WJ+w FV4rNOvqK+0seUg7GD/60DqY+FY1yqsnWz78hVrCTCWJ3A/YYo3SXXquVdcQPZ5anCEy UBrA== Original-Received: by 10.50.6.229 with SMTP id e5mr8458853iga.9.1338821791555; Mon, 04 Jun 2012 07:56:31 -0700 (PDT) Original-Received: by 10.64.58.70 with HTTP; Mon, 4 Jun 2012 07:56:31 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.169 X-Mailman-Approved-At: Mon, 04 Jun 2012 12:13:30 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85106 Archived-At: On Mon, Jun 4, 2012 at 9:55 AM, suvayu ali 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.