From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: Re: Performance problem Date: Mon, 23 May 2011 19:20:51 +0200 Message-ID: References: <22fpa8xo1v.ln2@news.c0t0d0s0.de> <87ei3pfxem.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOYqE-0000f6-JZ for emacs-orgmode@gnu.org; Mon, 23 May 2011 13:22:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOYqC-0008Ms-V4 for emacs-orgmode@gnu.org; Mon, 23 May 2011 13:22:54 -0400 Received: from lo.gmane.org ([80.91.229.12]:43705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOYqC-0008Mh-EJ for emacs-orgmode@gnu.org; Mon, 23 May 2011 13:22:52 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QOYqB-0000wJ-AL for emacs-orgmode@gnu.org; Mon, 23 May 2011 19:22:51 +0200 Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 May 2011 19:22:51 +0200 Received: from mwe012008 by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 May 2011 19:22:51 +0200 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, Michael Welle writes: [...] >>> I don't blame org-mode for that behaviour, but maybe someone of you has >>> observed such behaviour, too? Any hints on debugging? >> >> M-x elp-instrument-package org [RET] >> M-x org-agenda-list >> M-x elp-results > Ah, nice. Now I have to wait til the misbehaviour occurs again. a different machine, but the same problem ;). This is a 'bad' run org-agenda-list 1 17.646198 17.646198 org-agenda-get-day-entries 868 12.302421999 0.0141732972 org-agenda-get-sexps 868 11.237522999 0.0129464550 org-prepare-agenda-buffers 2 4.5861040000 2.2930520000 org-prepare-agenda 1 4.524422 4.524422 org-get-agenda-file-buffer 1116 4.2117990000 0.0037740134 org-mode 124 1.5946210000 0.0128598467 org-install-agenda-files-menu 124 1.0290419999 0.0082987258 org-agenda-files 134 0.84026 0.0062705970 org-find-base-buffer-visiting 1116 0.6872910000 0.0006158521 org-get-entries-from-diary 7 0.4210619999 0.0601517142 org-agenda-get-blocks 868 0.3384840000 0.0003899585 And this is a 'good' run org-agenda-list 1 3.935774 3.935774 org-prepare-agenda-buffers 2 2.894058 1.447029 org-prepare-agenda 1 2.833592 2.833592 org-get-agenda-file-buffer 1116 2.5790829999 0.0023110062 org-mode 124 1.1269950000 0.0090886693 org-install-agenda-files-menu 124 0.8238960000 0.0066443225 org-agenda-files 134 0.6465149999 0.0048247388 org-agenda-get-day-entries 868 0.5411369999 0.0006234297 org-get-entries-from-diary 7 0.49768 0.0710971428 org-find-base-buffer-visiting 1116 0.3149529999 0.0002822159 org-set-startup-visibility 124 0.1660580000 0.0013391774 org-refresh-category-properties 248 0.1442590000 0.0005816895 Looks like it spent most of the extra time in org-agenda-get-day-entries and org-agenda-get-sexps. Time to have a look at the source code ;). Regards hmw -- biff4emacsen - A biff-like tool for (X)Emacs http://www.c0t0d0s0.de/biff4emacsen/biff4emacsen.html Flood - Your friendly network packet generator http://www.c0t0d0s0.de/flood/flood.html