emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jamil egdemir <unclejamil@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: slow capture templates
Date: Thu, 22 May 2014 11:51:04 -0400	[thread overview]
Message-ID: <CAOa+0otcbfr48Fdi7NW40_txiXy0=jZTnARf979VS-5HoZSeGA@mail.gmail.com> (raw)
In-Reply-To: <87wqde9p1b.fsf@bzg.ath.cx>

Bastien,

I've pulled the latest org from git and added it to my load-path:

;; to make sure we're using the latest org checkout from git:
(add-to-list 'load-path "~/home/jegdemir/buildarea/org-mode/lisp")
(add-to-list 'load-path "~/home/jegdemir/buildarea/org-mode/contrib/lisp" t)

and now when I evaluate org-version in my *scratch* I get:

(org-version)"8.2.6"

so it seems I'm tracking with development now.

I reran the profiler with org instrumented:

org-get-x-clipboard                                           6
   62.326623797  10.387770632
org-get-x-clipboard-compat                                    6
   62.326477761  10.387746293
org-make-link-string                                          1
   0.026009872   0.026009872
org-image-file-name-regexp                                    1
   0.025920266   0.025920266
org-clock-in                                                  1
   0.004433664   0.004433664
org-mode-flyspell-verify                                      1
   0.002293867   0.002293867
org-indent-refresh-maybe                                      18
   0.001712022   9.511...e-05
org-switch-to-buffer-other-window                             2
   0.001558158   0.000779079
org-clock-find-position                                       1
   0.001489784   0.001489784
org-mode                                                      1
   0.001480635   0.001480635

I have also tried the capture templates with and without X
since the profile indicated that the largest
consumers of time were dealing with the clipboard.  Sure enough
the capture templates are greased lightning quick when run in emacs w/o X:

org-capture                                                   1
   1.161324914   1.161324914
org-capture-select-template                                   1
   1.1253895489  1.1253895489
org-mks                                                       1
   1.125358958   1.125358958
org-clock-in                                                  1
   0.030630571   0.030630571
org-clock-find-position                                       1
   0.025617154   0.025617154
org-indent-line                                               3
   0.0251875609  0.0083958536
org-in-item-p                                                 6
   0.0249584120  0.0041597353
org-list-context                                              6
   0.024542436   0.004090406
org-resolve-clocks                                            1
   0.002721156   0.002721156
org-find-open-clocks                                          3
   0.0025130990  0.0008376996
org-capture-fill-template                                     1
   0.002402191   0.002402191
org-capture-place-template                                    1
   0.002357772   0.002357772
org-capture-place-entry                                       1
   0.001994248   0.001994248
org-mode                                                      1
   0.001423784   0.001423784
org-indent-refresh-maybe                                      14
   0.001286477   9.189...e-05
<..snip..>

So it seems there is a connection with X.

-jamil

  reply	other threads:[~2014-05-22 15:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-22  7:07 slow capture templates jamil egdemir
2014-05-22  8:49 ` Bastien
2014-05-22 15:51   ` jamil egdemir [this message]
2014-05-22 16:34     ` Bastien
2014-05-22 21:25       ` Fwd: " jamil egdemir
2014-05-22 22:34         ` Nick Dokos
2014-05-23  5:35           ` Bastien
2014-05-23  6:07             ` 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='CAOa+0otcbfr48Fdi7NW40_txiXy0=jZTnARf979VS-5HoZSeGA@mail.gmail.com' \
    --to=unclejamil@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).