emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Why navigating in Org mode is so slow in overview mode?
Date: Mon, 22 Jun 2015 10:21:58 +0200	[thread overview]
Message-ID: <86twu0kva1.fsf@example.com> (raw)
In-Reply-To: 20150620204900.GA10522@boo.workgroup

Gregor Zattler <telegraph-hi6Y0CQ0nG0@public.gmane.org> writes:
> * Nicolas Goaziou <mail-Gpy5sJQTEQHwkn9pgDnJRVAUjnlXr6A1@public.gmane.org> [17. Jun. 2015]:
>> Gregor Zattler <telegraph-hi6Y0CQ0nG0@public.gmane.org> writes:
>>> I would like to help but need help myself on how to produce
>>> profiler reports.
>> 
>> M-x profiler-start
>> 
>> Do something slow
>> 
>> M-x profiler-report
>
> Thanks, this seemed rather easy and I open the org file in
> question in overview now:
>
> - most of the time it’s not slow! That’s great and a big
>   difference to months ago, when it was slow very often.
>
> - but there some hangs now and then.  At that moment I cannot
>   start the profiler.  If I start the profiler at the
>   beginning of using this org file and stop it maybe hours later
>   after something was slow: Would such report be helpful? 

FWIW, I've always used:

--8<---------------cut here---------------start------------->8---
  ;; Do not switch to OVERVIEW at startup.
  (setq org-startup-folded nil)
--8<---------------cut here---------------end--------------->8---

and I don't see any particular slowdown for my Org files:

--8<---------------cut here---------------start------------->8---
(Info) Found file ~/Public/Repositories/org-mode/lisp/../doc/library-of-babel.org in 1.28 s
(Info) Found file ~/org/personal/travaux-listing.org in 2.32 s
(Info) Found file ~/org/personal/travaux.org in 0.28 s
(Info) Found file ~/org/personal/conso.txt in 1.71 s
(Info) Found file ~/org/notes/Notes-on-Lisp.txt in 0.61 s
(Info) Found file ~/org/personal/Personal.org in 0.97 s
--8<---------------cut here---------------end--------------->8---

PS- Code to get the above timings:

--8<---------------cut here---------------start------------->8---
  (defadvice find-file (around my/find-file activate)
    "Open the file named FILENAME and report time spent."
    (let ((filename (ad-get-arg 0))
          (find-file-time-start (float-time)))
      (message "(Info) Finding file %s..." filename)
      ad-do-it
      (message "(Info) Found file %s in %.2f s" filename
               (- (float-time) find-file-time-start))))
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban

  parent reply	other threads:[~2015-06-22  8:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17  0:51 Why navigating in Org mode is so slow in overview mode? Q
2015-06-17  2:22 ` Q
2015-06-17  7:51 ` Nicolas Goaziou
2015-06-17 12:12   ` Gregor Zattler
2015-06-17 12:49     ` Andreas Leha
2015-06-17 14:16       ` Gregor Zattler
2015-06-17 14:09     ` Nicolas Goaziou
2015-06-20 20:49       ` Gregor Zattler
2015-06-21  9:13         ` Nicolas Goaziou
2015-06-21  9:46           ` Gregor Zattler
2015-06-23 10:49           ` Gregor Zattler
2015-06-23 20:15             ` Nicolas Goaziou
2015-07-20  8:39               ` Gregor Zattler
2015-07-20  9:49                 ` Nicolas Goaziou
2015-07-20 12:32                   ` Gregor Zattler
2015-06-22  8:21         ` Sebastien Vauban [this message]
2015-06-17 17:13   ` Qiang Fang
2015-06-28 11:43 ` Stefan-W. Hahn

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=86twu0kva1.fsf@example.com \
    --to=sva-news-d0wtavr13harg/idocfnwg@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).