emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Use of display properties as a caching mechanism
@ 2009-06-24 10:19 Nicolas Girard
  2009-06-24 10:26 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Girard @ 2009-06-24 10:19 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Use of display properties as a caching mechanism
  2009-06-24 10:19 Use of display properties as a caching mechanism Nicolas Girard
@ 2009-06-24 10:26 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-06-24 10:26 UTC (permalink / raw)
  To: Nicolas Girard; +Cc: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-24 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-24 10:19 Use of display properties as a caching mechanism Nicolas Girard
2009-06-24 10:26 ` Carsten Dominik

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).