[cairo] Adventures in caching
otaylor at redhat.com
Thu Apr 7 05:42:00 PDT 2005
On Wed, 2005-04-06 at 22:40 -0400, Mike Emmel wrote:
> Whats wrong with adding the concept of a weak reference for caching.
> The weak reference since its basically a boolean could be bumped each
> time a cache object goes strong counting the number of times it was
> strongly referenced allowing you to decide to either expand the cache
> if most objects were strongly referenced often or drop the ones that
> never or seldom went strong or some other more complex algo.
I think this is basically what I was describing in terms of making
cairo_cache_t more complex. There's nothing wrong with it ... but
for now, it seemed better to live with the existing data structure
(which can be strong or weak, but not both.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050407/dd8e22d0/attachment.pgp
More information about the cairo