[Grok-dev] Grok, python 2.6 and unladen-swallow

Hanno Schlichting hanno at hannosch.eu
Mon Sep 21 12:51:10 EDT 2009


On Mon, Sep 21, 2009 at 6:43 PM, Martijn Faassen <faassen at startifact.com> wrote:
> Sebastian Ware wrote:
>> Thanks for the info, I'll keep my expectations low then. I saw the
>> impressive improvements in Pickle and was thinking that it would speed
>> up Zodb access, but obviously it doesn't have to give any practical
>> improvements.
>
> The ZODB uses cPickle as far as I know, so speeding up pickle wouldn't
> help here.

Actually all of the unladen swallow optimizations are for cPickle, so
they are relevant. Their use-case was memcached and not the ZODB, but
in principle we still benefit from them ;-)

I think what happens in Zope applications quite often, is that most of
the objects are already in the connection cache and so the number of
unpickled objects tend to be small. The only times where I have seen
the ZODB to be noticeably slow is once you introduce large network
latency. The pickle/unpickle overhead doesn't seem to matter much at
all.

Hanno


More information about the Grok-dev mailing list