From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: How to make agenda generation faster Date: Wed, 10 Oct 2018 14:01:25 -0700 Message-ID: References: <87h8hy1ho5.fsf@mbork.pl> <87d0skj44p.fsf@luisa.c0t0d0s0.de> <87o9c18t7f.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]:46121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gALbp-00012l-8Z for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 17:01:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gALbl-0000sL-IX for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 17:01:33 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:33376) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gALbl-0000Yz-1h for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 17:01:29 -0400 Received: by mail-lf1-x135.google.com with SMTP id o21-v6so5066277lfe.0 for ; Wed, 10 Oct 2018 14:01:27 -0700 (PDT) In-Reply-To: <87o9c18t7f.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 for cleaning logbook entries, i'd enjoy having an agenda view that shows every entry that has state changes [above a minimum number of them to keep it small], with the size of the logbook drawer in the prefix or so next to the category, sorted by that size. there would be a corresponding agenda batch command that would archive, delete, or archive all except most recent for the marked entries. is it the number of headlines in a file or the total number in agenda files= ? i think it's great to have org-ql. lispy query is great. although mostly i just use text search, it would be more memorizable syntax for tags type search [and custom sorts?]. is this a suitable start for agenda-ng? will it be cleaner and faster? another speedup possibility might be to allow redoing the agenda with a new sorting strategy without having to redo the scanning of agenda files. i agree not scanning unchanged buffers could really speed up the agenda in principle. [it'd be great if emacs could parallelize across smp cores in addition. :]] On 10/10/18, Marcin Borkowski wrote: > > 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 > > --=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." --- .