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

Martijn Faassen faassen at startifact.com
Mon Sep 21 15:07:00 EDT 2009

Hanno Schlichting wrote:
> 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 ;-)

Ah, cool, so in theory this could help.

> 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.


As usual, making apps go faster is hard :)

Anyway, hopefully we'll get unladen swallow support in Grok for free 
once we move to Python 2.6 and someone experiments with it. We'll then 
see whether it matters for them.



More information about the Grok-dev mailing list