From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: C-c C-c in table takes 12 seconds (was: yasnippet and Org-mode) Date: Sun, 23 Nov 2014 13:48:33 +0100 Message-ID: <2014-11-23T13-45-08@devnull.Karl-Voit.at> References: <2014-11-23T13-27-20@devnull.Karl-Voit.at> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsWay-00042a-CQ for emacs-orgmode@gnu.org; Sun, 23 Nov 2014 07:48:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsWas-0005mT-HP for emacs-orgmode@gnu.org; Sun, 23 Nov 2014 07:48:52 -0500 Received: from plane.gmane.org ([80.91.229.3]:59642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsWas-0005mO-Ad for emacs-orgmode@gnu.org; Sun, 23 Nov 2014 07:48:46 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XsWaq-0007t1-V0 for emacs-orgmode@gnu.org; Sun, 23 Nov 2014 13:48:44 +0100 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Nov 2014 13:48:44 +0100 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Nov 2014 13:48:44 +0100 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 Hm. Maybe I wrongly suspected yasnippet: * Karl Voit wrote: > > Background with a specific issue: > > Issue: Whenever I change table cells via TAB, it takes twelve > seconds with 100% CPU core: > > org-table-next-field very slow: > #+BEGIN_EXAMPLE > - command-execute 31397 99% > - call-interactively 31397 99% > - yas-expand 31298 98% > - yas--fallback 31298 98% > - call-interactively 31298 98% > - org-cycle 31298 98% > - call-interactively 31291 98% > - org-table-next-field 31291 98% > - org-table-align 15676 49% > + org-activate-bracket-links 36 0% > [...] > #+END_EXAMPLE > > In org-table-next-field I suspect the re-calculation process. And > yes, also the simple ~C-c C-c~ on a table takes very long. Even > within the primitive table "| |". > > Profiling the re-calculation ends up with: > #+BEGIN_EXAMPLE > - command-execute 43157 99% > - call-interactively 43157 99% > - yas-expand 31871 73% > - yas--fallback 31871 73% > - call-interactively 31871 73% > - org-cycle 31871 73% > - call-interactively 31864 73% > - org-table-next-field 31864 73% > - org-table-align 15782 36% > - org-activate-bracket-links 46 0% > [...] > #+END_EXAMPLE > > So I guess that yas-expand has a certain role in this drama. Hm, I have to admit I forgot to test without yas-minor-mode (silly me): #+BEGIN_EXAMPLE - command-execute 10993 99% - call-interactively 10993 99% - org-ctrl-c-ctrl-c 10905 99% org-table-align 5450 49% + run-hook-with-args-until-success 6 0% + byte-code 34 0% + minibuffer-complete 26 0% + previous-line 18 0% + execute-extended-command 10 0% + timer-event-handler 6 0% + redisplay_internal (C function) 3 0% + ... 0 0% #+END_EXAMPLE Well, this does not involve yasnippet and also lasts too long :-( How about this? -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github