From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Girard Subject: Use of display properties as a caching mechanism Date: Wed, 24 Jun 2009 12:19:03 +0200 Message-ID: <51b0095d0906240319m3ecfcb23yc5dda4ce6d0a0ee0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJPZP-0003jZ-2t for emacs-orgmode@gnu.org; Wed, 24 Jun 2009 06:19:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJPZK-0003hd-Gd for emacs-orgmode@gnu.org; Wed, 24 Jun 2009 06:19:10 -0400 Received: from [199.232.76.173] (port=53181 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJPZK-0003hE-4y for emacs-orgmode@gnu.org; Wed, 24 Jun 2009 06:19:06 -0400 Received: from mail-fx0-f223.google.com ([209.85.220.223]:59180) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJPZJ-0002bM-Ip for emacs-orgmode@gnu.org; Wed, 24 Jun 2009 06:19:05 -0400 Received: by fxm23 with SMTP id 23so542642fxm.42 for ; Wed, 24 Jun 2009 03:19:04 -0700 (PDT) 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: emacs-orgmode@gnu.org 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 ? Nicolas