From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: Re: Performance problem Date: Mon, 23 May 2011 14:32:14 +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]:34099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOULz-00016W-0v for emacs-orgmode@gnu.org; Mon, 23 May 2011 08:35:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOULx-0001zb-A2 for emacs-orgmode@gnu.org; Mon, 23 May 2011 08:35:22 -0400 Received: from lo.gmane.org ([80.91.229.12]:57457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOULw-0001zM-Uh for emacs-orgmode@gnu.org; Mon, 23 May 2011 08:35:21 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QOULv-00064i-EV for emacs-orgmode@gnu.org; Mon, 23 May 2011 14:35:19 +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 14:35:19 +0200 Received: from mwe012008 by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 May 2011 14:35:19 +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, Matt Lundin writes: > Michael Welle writes: > >> I use Emacs 23.2.1 and org-mode 7.5. After some time, usually after a >> few days of 'uptime', building an agenda becomes very sloooow. > > Is this the standard agenda or a custom agenda? it's a custom agenda that collects all appointments for the next four weeks: ( "z" "Appointments for the next four weeks" agenda "" ((org-agenda-skip-function (lambda nil (org-agenda-skip-entry-if 'nottodo '("APPT")))) (org-agenda-ndays 28) (org-agenda-include-diary nil ))) >> I expect the agenda built from 120 org file to show up within five >> seconds. > > Five seconds still seems like a long time. How many lines are in your > agenda? Are your org buffers already open when you call it? Or have you > closed your org buffers by typing "x" in the agenda? OK, five seconds is an upper boundary, it might take more like three seconds or so. I count twentyone, twentytwo, ... to 'measure' the duration of the operation. With this higly accurate method I can't observe much difference if I started with loaded org files or not. >> If Emacs is in the bad state it takes three minutes. Restarting Emacs >> solves the problem. > >> 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. 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