[Top][All Lists]
[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
- Re: Image cache, (continued)
- Re: Image cache, Richard M. Stallman, 2006/02/09
- Re: Image cache, Juri Linkov, 2006/02/09
- Re: Image cache, Chong Yidong, 2006/02/09
- Re: Image cache, Mathias Dahl, 2006/02/09
- Re: Image cache, Miles Bader, 2006/02/09
- Re: Image cache, Richard M. Stallman, 2006/02/10
- Re: Image cache, Miles Bader, 2006/02/10
- Re: Image cache, Chong Yidong, 2006/02/10
- Re: Image cache, Miles Bader, 2006/02/11
- Re: Image cache, Juri Linkov, 2006/02/10
- Re: Image cache,
Stefan Monnier <=