From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Emacs hangs while loading .org file
Date: Wed, 17 Aug 2016 13:14:38 -0400 [thread overview]
Message-ID: <87y43vuxkx.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: m2a8gb74gl.fsf@block-party.net
David Dynerman <david@block-party.net> writes:
> Dear list,
>
> I have a fairly large org-file [1] (~2k lines) containing a substantial
> amount of code in #+BEGIN_SRC/#+END_SRC blocks. The code is mostly
> python, with one or two C blocks.
>
> Recently emacs has started to hang when loading the file for the first
> time. I saved a profiling report [2] where I loaded the file, let emacs
> sit unresponsive for about 5 minutes, then typed C-g.
>
> The report seems to indicate that fontifying python blocks is the
> problem - 90% of time is spent in python-nav-end-of-statement.
>
> Has anyone experienced something like this with large org files
> containing python code? The file contains a good chunk of scratch code
> which may contain python errors - is it possible that some syntactically
> bad python code is causing the fontification to run amok?
>
> If anyone has suggestions for finding the culprit, I'd be very happy to
> hear.
>
> Thank you,
> David
>
> [1] https://www.math.berkeley.edu/~dynerman/angular_xcorr.org
> [2] https://www.math.berkeley.edu/~dynerman/slow-org-load
>
>
Just a data point:
I tried loading it: I said "no" to the file local variables question;
the file loaded more or less instantly after that.
--
Nick
prev parent reply other threads:[~2016-08-17 17:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-17 16:19 Emacs hangs while loading .org file David Dynerman
2016-08-17 17:14 ` Nick Dokos [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=87y43vuxkx.fsf@alphaville.usersys.redhat.com \
--to=ndokos@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).