GNU bug report logs -
#68006
30.0.50; Image-mode speed
Previous Next
Full log
Message #98 received at 68006 <at> debbugs.gnu.org (full text, mbox):
> From: Manuel Giraud <manuel <at> ledu-giraud.fr>
> Cc: stefankangas <at> gmail.com, 68006 <at> debbugs.gnu.org
> Date: Fri, 05 Jan 2024 11:50:24 +0100
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Ok. Maybe we should re-use the current C cache code with a "nice"
> >> interface for this too.
> >
> > Yes, that can be done.
>
> Ok. More thinking: my idea is to have an interface to create/destroy
> image caches and feed/query them. And why not have a Lisp interface to
> it so something like image-mode could use this to manage its own cache.
Yes, of course. We have a Lisp API for the existing cache as well,
but this new one will need it much more, since we basically rely on
the Lisp programs to manage this new cache.
> > But we might need to store additional information there, like the
> > buffer of the image, for example.
>
> I don't understand. Where do you think that the buffer of the image
> should be stored?
In the cache, together with the image, I think. How else would the
Lisp programs know which images "belong" to them, and when to uncache
them? I guess some other information relevant to the cache-removal
decision will also need to be stored there.
This bug report was last modified 224 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.