From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Speeding up agenda display Date: Sat, 2 Jan 2010 20:37:45 +0100 Message-ID: References: <4D8BBF51-8F5A-47E4-99F4-603E349BDD99@gmail.com> <8CAD865A-01AA-49B7-AEE5-1FF088865282@gmail.com> <4CA37E79-ADED-4127-A358-218B6B522F05@iu.edu> <938BEB0E-6A34-44B5-9164-CE26105E3EEB@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) 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 1NR9nP-0003QS-Uc for emacs-orgmode@gnu.org; Sat, 02 Jan 2010 14:37:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NR9nL-0003PK-5p for emacs-orgmode@gnu.org; Sat, 02 Jan 2010 14:37:55 -0500 Received: from [199.232.76.173] (port=46821 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NR9nL-0003PA-2v for emacs-orgmode@gnu.org; Sat, 02 Jan 2010 14:37:51 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:49788) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NR9nK-0002rk-Le for emacs-orgmode@gnu.org; Sat, 02 Jan 2010 14:37:50 -0500 Received: by ewy24 with SMTP id 24so16660127ewy.26 for ; Sat, 02 Jan 2010 11:37:48 -0800 (PST) In-Reply-To: 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: "Andrew J. Korty" Cc: Org Mode On Jan 2, 2010, at 3:38 PM, Andrew J. Korty wrote: > On Jan 2, 2010, at 02:50 , Carsten Dominik wrote: > >> You can shave off another .5 seconds by pressing the selection key >> faster - Org spends 0.46 seconds to wait for your keypress :-) > > Good point. :-) > > I optimized things a bit more by caching skip positions and > schedule, deadline, and tag data for each point a skip function is > called in a hash. An example hash value might be > > (((due-soon . t) (started . nil) (tagged-for-home . t)) . skip- > position) > > These savings add up when you have several slightly differing > agendas in a block agenda. Hi Andrew, that is interesting. I have been thinking about caching often but always stopped implementing it because, being a plain text system, there is always the possibility that thinks are being changed behind the back of the cache. How are you handling updating the cache? - Carsten