From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: FR: per-session caching of *Org Agenda* buffer Date: Tue, 15 Jan 2008 12:48:16 +0100 Message-ID: <1BE9BE1C-CCD3-4D41-A643-D06ACE4085AB@gmail.com> References: <20071229231323.GA20947@atlantic.linksys.moosehall> Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEkHG-0006P3-30 for emacs-orgmode@gnu.org; Tue, 15 Jan 2008 06:48:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEkHF-0006OW-Ah for emacs-orgmode@gnu.org; Tue, 15 Jan 2008 06:48:21 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEkHF-0006OS-0q for emacs-orgmode@gnu.org; Tue, 15 Jan 2008 06:48:21 -0500 Received: from ug-out-1314.google.com ([66.249.92.169]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JEkHE-0003d4-J7 for emacs-orgmode@gnu.org; Tue, 15 Jan 2008 06:48:20 -0500 Received: by ug-out-1314.google.com with SMTP id a2so75109ugf.48 for ; Tue, 15 Jan 2008 03:48:19 -0800 (PST) In-Reply-To: <20071229231323.GA20947@atlantic.linksys.moosehall> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Adam Spiers Cc: org-mode mailing list On Dec 30, 2007, at 12:13 AM, Adam Spiers wrote: > For me at least, generation of the *Org Agenda* buffer takes a good > 1.5 seconds or so each time, on a pretty decent machine. This isn't > too bad, and is at least in part due to my tendency for Structured > Procrastination which leads to very long TODO.org files (and lots of > posts to this list ;-) > > However, I think it would be pretty easy to smash this 1.5s down to > 0.01s or quicker in the majority of cases, simply by implementing a > basic Makefile-like awareness of all the dependencies which form > inputs into the process of generating the *Org Agenda* buffer. Then, > while the first generation after emacs startup would still be slow, > any subsequent generation would be instant as long as none of the > dependent inputs (agenda files, custom variables etc., > day/week/month/grid/log etc. view modes) had changed since the last > generation, since it would simply be a matter of redisplaying the > existing *Org Agenda* buffer. > > It sounds doable to me, and in fact pretty easy. The only tricky bit > might be figuring out whether any relevant variables had changed. Are > there any other inputs to the generation process I've missed? Hi Adam, yes, Org-mode is slow an creating agendas from long files. First of all, have you compiled org.el? That might already help. 2nd, I don't think at all that this is simple, unless you keep redisplaying the exact same agenda all the time, in which case it is easier to just switch back to the agenda buffer. Improving the speed of agenda creation would require an internal representation of all the data and deriving the agenda stuff from that. I don't want to go there, so why do you think this is simple? - Carsten > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode