From mboxrd@z Thu Jan 1 00:00:00 1970 From: jamil egdemir Subject: Re: slow capture templates Date: Thu, 22 May 2014 11:51:04 -0400 Message-ID: References: <87wqde9p1b.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnVGs-0003mu-AK for emacs-orgmode@gnu.org; Thu, 22 May 2014 11:51:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnVGr-0007Hn-Ci for emacs-orgmode@gnu.org; Thu, 22 May 2014 11:51:06 -0400 Received: from mail-ve0-x22f.google.com ([2607:f8b0:400c:c01::22f]:64453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnVGr-0007HZ-8f for emacs-orgmode@gnu.org; Thu, 22 May 2014 11:51:05 -0400 Received: by mail-ve0-f175.google.com with SMTP id jw12so4641614veb.20 for ; Thu, 22 May 2014 08:51:04 -0700 (PDT) In-Reply-To: <87wqde9p1b.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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