From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Welle Subject: Re: How to make agenda generation faster Date: Mon, 08 Oct 2018 09:20:54 +0200 Message-ID: <87d0skj44p.fsf@luisa.c0t0d0s0.de> References: <87h8hy1ho5.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9Pqf-0006oT-48 for emacs-orgmode@gnu.org; Mon, 08 Oct 2018 03:21:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9Pqb-00074d-Vr for emacs-orgmode@gnu.org; Mon, 08 Oct 2018 03:21:01 -0400 Received: from mout.gmx.net ([212.227.17.20]:43585) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g9Pqb-00073l-ML for emacs-orgmode@gnu.org; Mon, 08 Oct 2018 03:20:57 -0400 Received: from stella.c0t0d0s0.de ([194.95.66.1]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MY3Ho-1gDw4l2oa0-00UvNc for ; Mon, 08 Oct 2018 09:20:55 +0200 Received: from stella.c0t0d0s0.de ([194.95.66.1]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MY3Ho-1gDw4l2oa0-00UvNc for ; Mon, 08 Oct 2018 09:20:55 +0200 Received: from Stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id DCF41181399 for ; Mon, 8 Oct 2018 09:20:54 +0200 (CEST) In-Reply-To: <87h8hy1ho5.fsf@mbork.pl> (Marcin Borkowski's message of "Sun, 07 Oct 2018 06:53:30 +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" To: emacs-orgmode@gnu.org Hello, Marcin Borkowski writes: > Hi Orgers, > > my agenda takes almost 10 seconds to show up. Are there any ideas for > profiling that? > > I suspect that archiving a lot of old entries I don't use anymore might > help, but is there any way to e.g. display some stats on which > file/headline took how much time? since no one answered yet, there are some similar threads. IIRC the way to go is to use elp for profiling. Well, on my laptop the initial agenda run takes about 7s or so (150 agenda files) using the current day/week agenda ("a"). All subsequent (after loading the files) agenda runs are fast (split second I would say). I had some performance issues in the past caused by SCM. Emacs tried to check if every file is checked out in the latest version. That slowed down the process a lot (starting 150 mercurial processes in sequential order, checking results, etc.). The initial run doesn't bother me much. I bound the initial agenda run to an idle timer at Emacs start. Regards hmw