From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Sean Markan <sean.markan@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: fill-paragraph running slowly in org mode
Date: Wed, 16 Jul 2014 15:34:31 +0200 [thread overview]
Message-ID: <87egxljul4.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAMjU8_1tRW11hs9t71hb6wZP=ZwNFAV1D5Brb5zJemKX1aP2Tw@mail.gmail.com> (Sean Markan's message of "Sat, 12 Jul 2014 14:18:33 -0400")
Hello,
Sean Markan <sean.markan@gmail.com> writes:
> 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 have tried (setq fill-paragraph-function nil) in an effort to use emacs'
> default fill function instead of org mode's, but that did not fix the
> problem.
You could set it locally, in a hook (e.g., `org-mode-hook').
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2014-07-16 13:34 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 [this message]
2014-07-17 20:12 ` Sean Markan
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=87egxljul4.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=sean.markan@gmail.com \
/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).