From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: How to make agenda generation faster Date: Wed, 10 Oct 2018 22:03:48 +0200 Message-ID: <87o9c18t7f.fsf@mbork.pl> References: <87h8hy1ho5.fsf@mbork.pl> <87d0skj44p.fsf@luisa.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAKjG-00073j-BB for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 16:05:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAKjC-000815-Rk for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 16:05:10 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:35778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAKjC-00080u-Gm for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 16:05:06 -0400 In-reply-to: <87d0skj44p.fsf@luisa.c0t0d0s0.de> 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: Michael Welle Cc: emacs-orgmode@gnu.org On 2018-10-08, at 09:20, Michael Welle wrote: > 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. Interesting. I did not notice such differences between the first and subsequent runs. Anyway, thanks for your input (to all people who replied, actually). -- Marcin Borkowski http://mbork.pl