emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Nicolas Girard <nicolas.girard@nerim.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Use of display properties as a caching mechanism
Date: Wed, 24 Jun 2009 12:26:23 +0200	[thread overview]
Message-ID: <E5605317-3D78-4EBF-A88F-E14D0D1F354E@gmail.com> (raw)
In-Reply-To: <51b0095d0906240319m3ecfcb23yc5dda4ce6d0a0ee0@mail.gmail.com>


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

      reply	other threads:[~2009-06-24 10:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-24 10:19 Use of display properties as a caching mechanism Nicolas Girard
2009-06-24 10:26 ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E5605317-3D78-4EBF-A88F-E14D0D1F354E@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicolas.girard@nerim.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).