From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Jaderholm Subject: Re: Ways to make org feasible for huge files Date: Fri, 14 Oct 2011 04:06:56 -0400 Message-ID: References: <4E9650AA.2080400@gmail.com> <87r52hjro6.fsf@thinkpad.tsdh.de> <877h48kqgp.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001517478442022b1804af3dc0cb Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REcnq-0007xS-6F for emacs-orgmode@gnu.org; Fri, 14 Oct 2011 04:07:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REcnp-00023T-2v for emacs-orgmode@gnu.org; Fri, 14 Oct 2011 04:07:38 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:61518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REcno-00023G-Uc for emacs-orgmode@gnu.org; Fri, 14 Oct 2011 04:07:37 -0400 Received: by eye4 with SMTP id 4so1004364eye.0 for ; Fri, 14 Oct 2011 01:07:36 -0700 (PDT) In-Reply-To: <877h48kqgp.fsf@thinkpad.tsdh.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Tassilo Horn Cc: emacs-orgmode@gnu.org, Marcelo de Moraes Serpa --001517478442022b1804af3dc0cb Content-Type: text/plain; charset=ISO-8859-1 Btw I get that behavior in emacs 23.1 too Scott On Fri, Oct 14, 2011 at 3:00 AM, Tassilo Horn wrote: > Marcelo de Moraes Serpa writes: > > Hi Marcelo, > > > 4328, exactly the same amount of lines I have in the file. > > Didn't you say that you have 4000 *k* lines? > > Anyway, as Scott mentiones, in emacs 24 the linum packages seems to be > more clever and only creates overlays for the visible area of a buffer. > For example, when opening a file with 1000 lines and enabling > linum-mode, I only have 35 overlays, because only 35 lines are visible > at a time. > > Bye, > Tassilo > > > On Thu, Oct 13, 2011 at 2:07 AM, Tassilo Horn >wrote: > > > >> Marcelo de Moraes Serpa writes: > >> > >> > Wow.. this worked Torsten. Thank you. I wonder why this happens... > >> > >> linum-mode works with overlays to embed the numbers at the beginnig of > >> lines. Overlays are very flexible but not too efficient, you don't want > >> to have too many of them. Looking at linum.el, it seems it already does > >> pooling of overlays in order not to create one overlay for any line, but > >> I'm not sure. Could you please do > >> > >> M-: (length linum-overlays) RET > >> > >> in that large org file with linum-mode enabled and say what it returns > >> to satisfy my curiosity? > >> > >> Bye, > >> Tassilo > >> > >> > >> > > --001517478442022b1804af3dc0cb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Btw I get that behavior in emacs 23.1 too
Scott


On Fri, Oct 14, 2011 at 3:00 AM, Tassilo= Horn <tassi= lo@member.fsf.org> wrote:
Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:

Hi Marcelo,

> 4328, exactly the same amount of lines I have in the file.

Didn't you say that you have 4000 *k* lines?

Anyway, as Scott mentiones, in emacs 24 the linum packages seems to be
more clever and only creates overlays for the visible area of a buffer.
For example, when opening a file with 1000 lines and enabling
linum-mode, I only have 35 overlays, because only 35 lines are visible
at a time.

Bye,
Tassilo

> On Thu, Oct 13, 2011 at 2:07 AM, Tassilo Horn <tassilo@member.fsf.org>wrote:
>
>> Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:
>>
>> > Wow.. this worked Torsten. Thank you. I wonder why this happe= ns...
>>
>> linum-mode works with overlays to embed the numbers at the beginni= g of
>> lines. =A0Overlays are very flexible but not too efficient, you do= n't want
>> to have too many of them. =A0Looking at linum.el, it seems it alre= ady does
>> pooling of overlays in order not to create one overlay for any lin= e, but
>> I'm not sure. =A0Could you please do
>>
>> =A0M-: (length linum-overlays) RET
>>
>> in that large org file with linum-mode enabled and say what it ret= urns
>> to satisfy my curiosity?
>>
>> Bye,
>> Tassilo
>>
>>
>>


--001517478442022b1804af3dc0cb--