emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sean Markan <sean.markan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: fill-paragraph running slowly in org mode
Date: Thu, 17 Jul 2014 16:12:56 -0400	[thread overview]
Message-ID: <CAMjU8_2qWok58fugP+ukA0FhgA22BAPz5DkGeEEJNuJYg24UZA@mail.gmail.com> (raw)
In-Reply-To: <87egxljul4.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

>
>
> > 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

[-- Attachment #2: Type: text/html, Size: 1206 bytes --]

      reply	other threads:[~2014-07-17 20:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-12 18:18 fill-paragraph running slowly in org mode Sean Markan
2014-07-16 13:34 ` Nicolas Goaziou
2014-07-17 20:12   ` Sean Markan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMjU8_2qWok58fugP+ukA0FhgA22BAPz5DkGeEEJNuJYg24UZA@mail.gmail.com \
    --to=sean.markan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).