-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jesus Cea wrote:
> A better way would be to take "X" objects from the cache, sort them by
> "_p_touched" (that keeps the commit generation last touched such
> object), and do the "make_weak()" game in the "X/2" (or "X/10") more old
> objects. So we could keep the more recently touched objects in core.
I would remark that that sorting is already done in the code. The issue
would be invert the sorting and the make_weak steps. Also, current
"ghost_fraction" value seems a bit aggresive to me, and there is no
interface to change it without knowing about the inner working of the
cache class.
- --
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea@argo.es http://www.argo.es/~jcea/ _/_/ _/_/ _/_/ _/_/ _/_/
jabber / xmpp:jcea@jabber.org _/_/ _/_/ _/_/_/_/_/
_/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQCVAwUBRHYIQJlgi5GaxT1NAQIYKAP/a1YcYs1E/Gvu2dRE9WegqzkZYtDAIjRl
hJKmAN8hk/jeuCxaUFVvvixTPLbTU0eqwEdEfmh49WMDSaskRj14rUKn7hZTvb2D
p3+5omhCepa/13JGREHZm52HutRKCMaZbRWbE8YeaLkZ6LLTjHI6fjqlssVTw4lI
ZvFaeoBBdnk=
=weps
-----END PGP SIGNATURE-----