emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: "atomic knowledge" modeling tool
Date: Tue, 16 Feb 2016 19:52:41 +0000	[thread overview]
Message-ID: <87h9h8xwja.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87mvr0ppua.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 16 Feb 2016 17:44:29 +0100")

On Tuesday, 16 Feb 2016 at 17:44, Nicolas Goaziou wrote:
> Hello,
>
> Samuel Loury <konubinix@gmail.com> writes:
>
>> Nevertheless, org-mode is rather slow when my todo.org file becomes
>> quite large (~20K lines).
>
> Could you share some profiler information under typical usage so that we
> can tell which parts are slow?
>
> Regards,

Nicolas,

in case it helps you, here are results from elp-instrument-package for
org for a default agenda view.  My agenda files have >50k lines.

--8<---------------cut here---------------start------------->8---
org-agenda                          1    6.273196422   6.273196422
org-agenda-list                     1    6.097429472   6.097429472
org-agenda-prepare                  1    5.759004218   5.759004218
org-agenda-prepare-buffers          1    5.74965952    5.74965952
org-get-agenda-file-buffer          24   5.2378653290  0.2182443887
org-mode                            12   4.682173111   0.3901810925
org-bullets-mode                    12   4.297196221   0.3580996850
org-activate-dates                  8094 0.9626486539  0.0001189336
org-do-latex-and-related            57   0.90258761    0.0158348703
org-fontify-meta-lines-and-blocks   558  0.8863723670  0.0015884809
org-fontify-meta-lines-and-blocks-1 558  0.8854672459  0.0015868588
org-src-font-lock-fontify-block     115  0.8548640270  0.0074336002
org-display-custom-time             8081 0.5510519969  6.819...e-05
org-imenu-get-tree                  9    0.258258335   0.0286953705
org-refresh-category-properties     12   0.24712266    0.020593555
org-agenda-get-day-entries          12   0.2210667090  0.0184222257
org-parse-time-string               9288 0.1951283320  2.100...e-05
org-fontify-drawers                 5818 0.1932821849  3.322...e-05
--8<---------------cut here---------------end--------------->8---

Curiously, org-bullets-mode seems to be the main bottleneck on my system
(Debian testing with 8 core Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz)

If I remove the org-bullets and org-ellipses customisations, I get:

--8<---------------cut here---------------start------------->8---
org-agenda                              1    1.442858014   1.442858014
org-agenda-list                         1    1.267505347   1.267505347
org-agenda-prepare                      1    1.055099145   1.055099145
org-agenda-prepare-buffers              1    1.050210531   1.050210531
org-get-agenda-file-buffer              24   0.6879062640  0.0286627610
org-imenu-get-tree                      9    0.2137700209  0.0237522245
org-agenda-get-day-entries              12   0.203279769   0.0169399807
org-agenda-get-restriction-and-command  1    0.175206608   0.175206608
org-agenda-get-scheduled                12   0.161025292   0.0134187743
--8<---------------cut here---------------end--------------->8---

A > 4× improvement!

Maybe the OP is customising bullets as well...

Thanks,
eric
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-601-gff9890

  reply	other threads:[~2016-02-16 19:52 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-29 18:21 "atomic knowledge" modeling tool luke call
2016-01-31 12:32 ` Eric S Fraga
2016-02-01 22:15   ` luke call
2016-02-02  8:49     ` Eric S Fraga
2016-02-03  9:33     ` Marcin Borkowski
2016-02-03 14:47       ` luke call
2016-02-03 17:15     ` Bingo UV
2016-02-03 18:22       ` luke call
2016-01-31 15:37 ` Ramon Diaz-Uriarte
2016-02-01 21:25   ` luke call
2016-02-03  8:04     ` Ramon Diaz-Uriarte
2016-02-02  7:23 ` Robert Klein
2016-02-02 15:20   ` luke call
2016-02-16 14:14     ` Samuel Loury
2016-02-16 16:18       ` Eric S Fraga
2016-02-16 16:44       ` Nicolas Goaziou
2016-02-16 19:52         ` Eric S Fraga [this message]
2016-02-20 18:09         ` Samuel Loury
2016-02-21 11:21           ` Nicolas Goaziou
2016-02-22  9:04             ` Samuel Loury
2016-02-24 16:46               ` Eric S Fraga
2016-02-29 13:31                 ` Samuel Loury
2016-03-06 19:26                   ` Samuel Loury
2016-03-07 15:28                     ` Eric S Fraga
2016-03-10  8:01                       ` Samuel Loury
2016-03-18 21:44                       ` Samuel Loury

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=87h9h8xwja.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --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).