[Cubicweb] lgc.cache in cubicweb

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Sep 7 15:13:41 CEST 2011

On 07 September 14:21, Aurélien Campéas wrote:
> While tracking potential optimisation topics in the cw code base, I
> crossed logilab.common.cache usages in the querier and native
> source.
> Reading the lgc.cache code it occurred to me that it may not be
> optimal (for the cw usage at least).
> So I've written a replacement that tries to be less ruthlessly
> inefficient and at the same time attempts to not leak memory.

sounds cool
> Here's the output of a small benchmark I just made up using
> pre-recorded queries from one big unit test (one that generates a
> lot of requests). The cache sizes are up-varying.

I guess given results are benchmark of the code out-of-context.
Do you have an idea of potential impact on overall cubicweb queries 
execution ?

Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org

More information about the Cubicweb mailing list