From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: How to make agenda generation faster Date: Thu, 11 Oct 2018 12:59:13 -0700 Message-ID: References: <87h8hy1ho5.fsf@mbork.pl> <87d0skj44p.fsf@luisa.c0t0d0s0.de> <87o9c18t7f.fsf@mbork.pl> <874ldtkmgw.fsf@luisa.c0t0d0s0.de> <87va687tt8.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAh7G-0007lf-H5 for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 15:59:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAh7E-00012o-9b for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 15:59:26 -0400 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]:39981) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAh79-0000yu-7v for emacs-orgmode@gnu.org; Thu, 11 Oct 2018 15:59:20 -0400 Received: by mail-lj1-x241.google.com with SMTP id r83-v6so9350582ljr.7 for ; Thu, 11 Oct 2018 12:59:16 -0700 (PDT) In-Reply-To: <87va687tt8.fsf@mbork.pl> 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: Marcin Borkowski Cc: emacs-orgmode@gnu.org, Michael Welle i too visit all files when emacs starts. are we saying that the speed depends on the number of headlines total or the number of headlines in a single file among the agenda files? On 10/11/18, Marcin Borkowski wrote: > > On 2018-10-11, at 08:48, Michael Welle wrote: > >> Hello, >> >> Marcin Borkowski writes: >> >>> On 2018-10-08, at 09:20, Michael Welle wrote: >> [...] >>>> 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. Tha= t >>>> 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. >> I thought that behaviour is natural, scanning dirs for files and opening >> them is a costly operation. But a week ago I changed from rotating rust >> to solid state disks and that behaviour did not change much. I expected >> a speed up, but mee. > > Ah, I have /visiting/ all my agenda files (but not generating the agenda > itself) in my init.el. > > That explains a lot. > > Best, > > -- > Marcin Borkowski > http://mbork.pl > > --=20 The Kafka Pandemic: The disease DOES progress. MANY people have died from it. And ANYBODY can get it at any time. "You=E2=80=99ve really gotta quit this and get moving, because this is murd= er by neglect." --- .