From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Markan Subject: Re: fill-paragraph running slowly in org mode Date: Thu, 17 Jul 2014 16:12:56 -0400 Message-ID: References: <87egxljul4.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1b31ca3acb004fe694693 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7s3f-0006l7-Jt for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 16:13:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7s3e-0001ud-Or for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 16:13:39 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:43851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7s3e-0001uY-HU for emacs-orgmode@gnu.org; Thu, 17 Jul 2014 16:13:38 -0400 Received: by mail-wi0-f177.google.com with SMTP id ho1so3453738wib.4 for ; Thu, 17 Jul 2014 13:13:37 -0700 (PDT) In-Reply-To: <87egxljul4.fsf@nicolasgoaziou.fr> 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: emacs-orgmode@gnu.org --001a11c1b31ca3acb004fe694693 Content-Type: text/plain; charset=UTF-8 > > > > I just upgraded to a new version of Linux/emacs/org-mode, and am finding > > that fill-paragraph (M-q) runs very slowly in org-mode on large files. > > With about 50k lines in the buffer, fill-paragraph takes around 3 seconds > > even if the paragraph is only a couple lines. (The behavior is correct, > > the problem is just the slowness.) The time seems to scale linearly with > > the number of lines in the buffer as if the whole file is being processed > > during each fill-paragraph. > > Actually, the full section is processed. It can be slow on very large > sections, indeed. Though, you could use a profiler (M-x profiler-start) > to check if something is suspicious. > > Note that Org 8.3+ makes it a lot better with a cache mechanism, but it > is still buggy at the moment. > I see, thanks! I will insert some section breaks in my file. - Sean --001a11c1b31ca3acb004fe694693 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

> I just upgraded to a new version of Linux/emacs/org-mode, and am findi= ng
> that fill-paragraph (M-q) runs very slowly in org-mode on large files.=
> With about 50k lines in the buffer, fill-paragraph takes around 3 seco= nds
> even if the paragraph is only a couple lines. =C2=A0(The behavior is c= orrect,
> the problem is just the slowness.) =C2=A0The time seems to scale linea= rly with
> the number of lines in the buffer as if the whole file is being proces= sed
> during each fill-paragraph.

Actually, the full section is processed. It can be slow on very large=
sections, indeed. Though, you could use a profiler (M-x profiler-start)
to check if something is suspicious.

Note that Org 8.3+ makes it a lot better with a cache mechanism, but it
is still buggy at the moment.

I see, th= anks!=C2=A0 I will insert some section breaks in my file.
=C2= =A0
- Sean

--001a11c1b31ca3acb004fe694693--