From: jamil egdemir <unclejamil@gmail.com>
To: emacs-orgmode@gnu.org
Subject: slow capture templates
Date: Thu, 22 May 2014 03:07:25 -0400 [thread overview]
Message-ID: <CAOa+0osZy9JN4-V-9FRLd6setm6diGNNaPthtRX89=XFL=2W=Q@mail.gmail.com> (raw)
Hi,
I'm running into very slow capture templates since this morning with a
good 10-20 second delay each time I try to invoke them. After
instrumenting org with elp and examining the results I get:
org-capture 1
42.157791853 42.157791853
org-capture-fill-template 1
40.939494541 40.939494541
org-get-x-clipboard 5
40.895240381 8.1790480762
org-get-x-clipboard-compat 5
40.895134778 8.1790269558
org-capture-select-template 1
1.168859672 1.168859672
org-mks 1
1.168828382 1.168828382
org-mode 1
0.043022998 0.043022998
org-install-agenda-files-menu 1
0.041738898 0.041738898
org-agenda-files 2
0.041651735 0.0208258675
org-current-time 2
0.033159385 0.0165796925
org-capture-place-template 1
0.009962929 0.009962929
<snip...>
Looks like those top four calls in the list are burning up a huge
amount of time. The delay is independent of the particular template I
use and also occurs when I start up emacs without an init (emacs -q).
I'm working on OpenBSD 5.4.
Emacs and Org-mode version info:
(org-version)"8.2.6"
GNU Emacs 24.4.50.1 (x86_64-unknown-openbsd5.4, GTK+ Version 3.8.2)
This particular emacs was built from source pulled just this morning.
The delay in the capture templates is also present when using the
emacs from the OpenBSD package: (GNU Emacs 24.3.1
(x86_64-unknown-openbsd, GTK+ Version 3.8.2) of 2013-07-23 on
amd64-1.ports.openbsd.org.
I pushed the same org files and configurations to an ubuntu box and
tried the same profiling exercise with elp on emacs (24.3.1) with
org-mode 7.9.3f and the capture templates were quick and snappy.
My capture templates from my .emacs:
;; Capture templates for: TODO tasks, Notes, appointments, phone
calls, meetings, and org-protocol
(setq org-capture-templates
(quote (("t" "todo" entry (file "~/workarea/personal/orgfiles/refile.org")
"* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t)
("r" "respond" entry (file
"~/workarea/personal/orgfiles/refile.org")
"* NEXT Respond to %:from on %:subject\nSCHEDULED:
%t\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t)
("n" "note" entry (file "~/workarea/personal/orgfiles/refile.org")
"* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t)
("j" "Journal" entry (file+datetree
"~/workarea/personal/orgfiles/diary.org")
"* %?\n%U\n" :clock-in t :clock-resume t)
("w" "org-protocol" entry (file
"~/workarea/personal/orgfiles/refile.org")
"* TODO Review %c\n%U\n" :immediate-finish t)
("m" "Meeting" entry (file
"~/workarea/personal/orgfiles/refile.org")
"* MEETING with %? :MEETING:\n%U" :clock-in t :clock-resume t)
("p" "Phone call" entry (file
"~/workarea/personal/orgfiles/refile.org")
"* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t)
("h" "Habit" entry (file
"~/workarea/personal/orgfiles/refile.org")
"* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string
\"<%Y-%m-%d %a .+1d/3d>\")\n:PROPERTIES:\n:STYLE:
habit\n:REPEAT_TO_STATE: NEXT\n:END:\n"))))
Anyone have any ideas on how I can correct this problem? The elisp in
those top four functions from the profile is beyond me.
-j
--
-------------------------------------------------------------
Jamil Egdemir
unclejamil@gmail.com
http://www.power-quant.com
(631) 338-3170 (cell)
-------------------------------------------------------------
next reply other threads:[~2014-05-22 7:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-22 7:07 jamil egdemir [this message]
2014-05-22 8:49 ` slow capture templates Bastien
2014-05-22 15:51 ` jamil egdemir
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+0osZy9JN4-V-9FRLd6setm6diGNNaPthtRX89=XFL=2W=Q@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).