From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Huge performance problems to open some Org files
Date: Wed, 18 May 2011 22:09:57 +0200 [thread overview]
Message-ID: <80zkmjsrca.fsf@somewhere.org> (raw)
In-Reply-To: 85DE9E8B-B319-435C-8EF0-342AA99F1BFB@gmail.com
Hi Eric, Carsten and al.,
Carsten Dominik wrote:
> On May 13, 2011, at 12:27 AM, Sebastien Vauban wrote:
>> Vladimir Alexiev wrote: This has gotten worse. But, now, I have some proofs
>> about what I experience: opening the attached Org file (2 KB) consumes me
>> 191 seconds, yes 191 seconds, even when done after the agenda view has been
>> launched -- I mean, all agenda files and all Org files have been read..
>
> I would think the only way to sort this out is the following:
>
> 1. Try loading the file with emacs -Q
> 2. Try loading it with
>
> emacs -Q -l minimal.emacs
>
> where the minimal.emacs d does nothing but
> make sure that the latest Org is being loaded.
>
> I expect that loading your file under these test will be very fast.
>
> Then bisect your entire Emacs setup to find which part of your setup is
> causing this issue. I know you have *a lot* of setup, but I don't see any
> other route.
Found it! Dunno understand the root cause yet, though.
After suspecting non-Org related stuff in my -- yes, Carsten -- huge .emacs
file, I found the problem to be here:
#+begin_src emacs-lisp
(add-hook 'org-mode-hook
(lambda ()
;; ;; display images in your Org files
;; (turn-on-iimage-mode)
;; PERFORMANCE PROBLEM with some Org files!!!
(local-set-key "\M-n" 'outline-next-visible-heading)
(local-set-key "\M-p" 'outline-previous-visible-heading)
;; table
(local-set-key "\M-\C-w" 'org-table-copy-region)
(local-set-key "\M-\C-y" 'org-table-paste-rectangle)
(local-set-key "\M-\C-l" 'org-table-sort-lines)
;; file modification date
(set (make-local-variable 'time-stamp-format) "%:y-%02m-%02d")
(set (make-local-variable 'time-stamp-start) "^#\\+DATE: +")
(set (make-local-variable 'time-stamp-end) "$")
;; flyspell mode to spell check everywhere
(when (executable-find ispell-program-name)
;; check if `ispell-program-name' seems correct
(flyspell-mode 1))
))
#+end_src
Turning on the line iimage-mode makes opening of *some* Org files go from 0.2
seconds to 193 seconds!
The times are very stable on both sides.
Dunno yet why this happen (I have the impression only on _my_ Windows, not
when I was on Ubuntu), but this will be for some later day...
Best regards,
Seb
--
Sébastien Vauban
next prev parent reply other threads:[~2011-05-18 20:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-17 9:15 Huge performance problems to open some Org files Sébastien Vauban
2010-12-17 10:11 ` Rainer Stengele
2010-12-17 10:44 ` Sébastien Vauban
2010-12-17 12:17 ` Andrew J. Korty
2010-12-17 12:29 ` Carsten Dominik
2010-12-17 13:26 ` Sébastien Vauban
2010-12-20 19:29 ` Vladimir Alexiev
2011-05-12 22:27 ` Sebastien Vauban
2011-05-13 9:49 ` Eric S Fraga
2011-05-13 10:15 ` Carsten Dominik
2011-05-18 20:09 ` Sebastien Vauban [this message]
2010-12-17 15:46 ` Nick Dokos
2010-12-17 21:55 ` Achim Gratz
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=80zkmjsrca.fsf@somewhere.org \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).