[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: |
Tue, 07 Feb 2006 15:59:29 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> OTOH, I don't see why I should change the value of image-cache-eviction-delay,
> if it is Emacs' job to update the cache when the image data changes.
> So I found that updating the image cache after visiting an new image
> was correct before the 2006-01-30 change in image-mode.el:
> * image-mode.el (image-toggle-display): Use file name if possible,
> instead of unnecessarily allocating a (possibly huge) lisp string.
> But I don't blame this change. It is a good optimization, but it
> revealed a problem in cache processing code. This code doesn't update
> the cache for the file name when the file contents changes.
If someone has the time, it seems it migt be worth it to do something along
the following lines:
- add `loadtime' timestamp to the image data-structure so that staleness can
be detected and a `refresh' function in the image_type data structure
which, given the `loadtime' image `spec' says whether to reload or not.
- provide a new function (image-refresh IMAGE-SPEC).
- make create-image (used by image-toggle-display and others) use that
new function.
Stefan
- Image cache, Juri Linkov, 2006/02/07
- Re: Image cache, Chong Yidong, 2006/02/07
- Re: Image cache,
Stefan Monnier <=
- 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