emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image cache


From: Stefan Monnier
Subject: Re: Image cache
Date: Sat, 11 Feb 2006 19:47:52 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> One certainly doesn't want to do a stat on _every_ reference, as stats
> can be expensive (and the thumbs package will tend to use lots of
> images); I think there would have to be some sort of counter/timer,
> e.g., only stat if more than 30 seconds since the last stat.  However
> as the stat info would give you time information anyway, that should
> be relatively straightforward.

The timeout is fairly arbitrary, so it's invariably turn out to be
unnecessarily short for half the cases and too long for the other half.

I much prefer an explicit way to force a check, which can be used in
create-image.  And in those rare cases where the image may change without
Emacs being directly involved, then a run-with-idle-timer can implement
the timeout.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]