Re: [PATCH 0/1] [V3] Add Cache in GrlNet



El mar, 15-03-2011 a las 13:27 +0100, Juan A. Suarez Romero escribió:
> Hello.
> 
> This third revision basically tries to reuse the libsoup cache across all
> grlnet instances.
> 
> This way, we can get rid of "identifier", as cache will be stored in a specific
> place.
> 
> What does this mean? As cache is shared across all instances, there are some
> operations that affects all of them.
> 
> As example, if one instance changes the maximum cache size, it will be
> reflected on all instances.

Some random ideas that come to my mind: 1) Not all the plugins need the
same cache size. 2) The more network based plugins you have, the bigger
the cache size should be 3) Each plugin could estimate a reasonable
cache size for it to work properly.

With these ideas in mind, I wonder if the API to control the size of the
cache should be so that the plugins declare their needed cache size once
on startup (for example), and grilo (wc in this case) adds this value to
the default cache size.

With this approach the size of the cache adapts to the size demanded by
the plugins and every plugin has the chance to request the size it
needs.

Iago




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