From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Use of display properties as a caching mechanism Date: Wed, 24 Jun 2009 12:26:23 +0200 Message-ID: References: <51b0095d0906240319m3ecfcb23yc5dda4ce6d0a0ee0@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v935.3) 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 1MJPgW-0000Xu-C4 for emacs-orgmode@gnu.org; Wed, 24 Jun 2009 06:26:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJPgR-0000Qa-MB for emacs-orgmode@gnu.org; Wed, 24 Jun 2009 06:26:31 -0400 Received: from [199.232.76.173] (port=52995 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJPgR-0000Q9-5w for emacs-orgmode@gnu.org; Wed, 24 Jun 2009 06:26:27 -0400 Received: from mail-ew0-f220.google.com ([209.85.219.220]:59438) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJPgQ-0005J7-Lw for emacs-orgmode@gnu.org; Wed, 24 Jun 2009 06:26:26 -0400 Received: by ewy20 with SMTP id 20so1080119ewy.42 for ; Wed, 24 Jun 2009 03:26:25 -0700 (PDT) In-Reply-To: <51b0095d0906240319m3ecfcb23yc5dda4ce6d0a0ee0@mail.gmail.com> 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: Nicolas Girard Cc: emacs-orgmode@gnu.org On Jun 24, 2009, at 12:19 PM, Nicolas Girard wrote: > When hacking the org-icons stuff, I came to realize that emacs allows > to attach any set or property/value to any part of a buffer. > > It seems to me like org-mode could perfectly use this as a caching > mechanism. > What bout storing time-expensive informations as special properties > attached to the first '*' of a heading ? > The price to pay would be to enforce the consistency of this cache -- > as with any cache, after all; as a benefit, this may boost org-mode's > performances. > What do you think ? I have been there, and I am using stuff like that for column view. However, Org-mode's commitment to plain text makes it possible that text is being changed behind its back, so most of the time, complete rescans are appropriate. Keeping a cache consistent would be a huge problem. - Carsten