emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Dynerman <david@block-party.net>
To: emacs-orgmode@gnu.org
Subject: Emacs hangs while loading .org file
Date: Wed, 17 Aug 2016 09:19:54 -0700	[thread overview]
Message-ID: <m2a8gb74gl.fsf@block-party.net> (raw)

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

             reply	other threads:[~2016-08-17 16:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-17 16:19 David Dynerman [this message]
2016-08-17 17:14 ` Emacs hangs while loading .org file Nick Dokos

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=m2a8gb74gl.fsf@block-party.net \
    --to=david@block-party.net \
    --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).