From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Performance problem Date: Tue, 24 May 2011 08:47:35 -0400 Message-ID: <8762p06za0.fsf@fastmail.fm> References: <22fpa8xo1v.ln2@news.c0t0d0s0.de> <87ei3pfxem.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOr1R-0005w6-6P for emacs-orgmode@gnu.org; Tue, 24 May 2011 08:47:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOr1Q-0007R1-Bp for emacs-orgmode@gnu.org; Tue, 24 May 2011 08:47:41 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:49937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOr1Q-0007Qv-9o for emacs-orgmode@gnu.org; Tue, 24 May 2011 08:47:40 -0400 In-Reply-To: (Michael Welle's message of "Mon, 23 May 2011 14:32:14 +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: Michael Welle Cc: emacs-orgmode@gnu.org Michael Welle writes: > 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 ))) A monthly view does indeed take a long time to appear. Skip functions are very useful but, alas, not particularly efficient. This command first considers all entries (SCHEDULED, DEADLINE, timestamp) that fall within the next 28 days and then selects only those entries with the keyword APPT. Might I ask whether your appointments are all timestamps or diary sexps (as opposed to SCHEDULED or DEADLINE entries)? If so, adding the following setting to the command may speed things up a bit: (org-agenda-entry-types '(:timestamp :sexp)) Best, Matt