From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Performance issues after upgrading from Emacs 23.3 to 24.3 Date: Thu, 9 Jan 2014 21:24:33 +0100 Message-ID: <2014-01-09T21-15-19@devnull.Karl-Voit.at> References: <2014-01-06T17-25-21@devnull.Karl-Voit.at> <871u0kp2s1.fsf@bzg.ath.cx> <2014-01-09T20-05-54@devnull.Karl-Voit.at> <871u0h9c6z.fsf@gmail.com> Reply-To: news1142@Karl-Voit.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1M9t-0007mL-R5 for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 15:24:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1M9o-000295-MB for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 15:24:53 -0500 Received: from plane.gmane.org ([80.91.229.3]:54866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1M9o-00028s-Bs for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 15:24:48 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W1M9k-00039B-T9 for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 21:24: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 ; Thu, 09 Jan 2014 21:24:44 +0100 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jan 2014 21:24: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 Hi Nicolas! * Nicolas Goaziou wrote: > > Hello, > > Karl Voit writes: > >> IMHO, the profiler reports showed a common pattern: a reasonable >> amount of CPU got into line-number-at-pos if I read the profiler >> report correctly. (see below) > > Does the following patch improve the situation? Yes! M-/ of list item is fast again. Re-calculate table is fast again. Wohoo! :-) Thanks! However, M-/ of a big heading is still slow (see profile below). Probably, I am able to find other examples of slow behavior on the weekend, where I am using the Linux-machine that has the issue. profiler-report (CPU) of ~M-~ of a heading containing approx. 20000 lines of appointments and notes without prelude and with patch: #+BEGIN_EXAMPLE - command-execute 84760 70% - call-interactively 84760 70% - org-metaup 83960 69% - call-interactively 83960 69% - org-move-subtree-up 83960 69% - org-move-subtree-down 83924 69% - insert-before-markers 83308 69% - org-indent-refresh-maybe 83300 69% - org-indent-add-properties 82729 68% - org-at-item-p 73452 61% - org-list-in-valid-context-p 69849 58% - org-in-block-p 69841 58% - byte-code 69781 58% - mapc 63655 53% - # 63595 52% - org-between-regexps-p 63467 52% - org-at-regexp-p 32900 27% byte-code 32817 27% byte-code 12 0% outline-previous-heading 2885 2% outline-next-heading 2785 2% org-list-item-body-column 857 0% org-get-indentation 8 0% org-element--cache-before-change 4 0% jit-lock-after-change 4 0% + org-clean-visibility-after-subtree-move 572 0% + outline-end-of-subtree 12 0% + hide-subtree 12 0% + byte-code 784 0% + minibuffer-complete 8 0% + execute-extended-command 8 0% - timer-event-handler 34748 28% - byte-code 34748 28% - apply 34748 28% - org-indent-initialize-agent 34748 28% - org-indent-initialize-buffer 34748 28% - byte-code 34748 28% - org-indent-add-properties 30627 25% - org-at-item-p 22699 18% - org-list-in-valid-context-p 20136 16% - org-in-block-p 20136 16% - byte-code 20040 16% - mapc 17820 14% - # 17772 14% - org-between-regexps-p 17705 14% - org-at-regexp-p 9070 7% byte-code 9040 7% byte-code 4 0% outline-previous-heading 1031 0% outline-next-heading 969 0% org-get-indentation 524 0% org-list-item-body-column 476 0% org-inlinetask-in-task-p 23 0% + byte-code 12 0% + ... 475 0% + redisplay_internal (C function) 12 0% #+END_EXAMPLE -- 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