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 21:59:31 +0200 Message-ID: <87sh1d8tek.fsf@mbork.pl> References: <87h8hy1ho5.fsf@mbork.pl> <87o9c34ocl.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAKfG-0004ql-Ng for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 16:01:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAKfC-0006Jd-SK for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 16:01:02 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:35640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAKfA-0006Ic-TL for emacs-orgmode@gnu.org; Wed, 10 Oct 2018 16:00:58 -0400 In-reply-to: <87o9c34ocl.fsf@alphapapa.net> 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: Adam Porter Cc: emacs-orgmode@gnu.org On 2018-10-09, at 08:37, Adam Porter wrote: > Hi Marcin, > > [...] > > If you haven't seen them already, you may find my org-ql and > org-ql-agenda code useful. org-ql-agenda presents an Agenda-like > buffer. N.B. It does *not* implement most of the Agenda features, but > it does emulate an Org Agenda buffer by setting the appropriate text > properties on entries and formatting them in a similar way. > > It's built on org-ql, which provides per-buffer query caching, which > means that generating an org-ql-agenda view for Org buffers that haven't > changed since the last view was generated is very fast. It's also > written in a more functional way, which I think is easier to follow and > modify. Performance of uncached queries/buffers depends on the > query--some are relatively fast, while others are slower than the "real" > Org Agenda. I think there is significant potential for optimizations, > and I'm hoping to implement some in the future. Your feedback would be > appreciated! > > https://github.com/alphapapa/org-ql Thanks, I'll check those out! Best, -- Marcin Borkowski http://mbork.pl