Hi Sean,

On 02/04/2012 9:34, Sean Ochoa wrote:
> Hey all.
>
> In my attempt at trying to create a message queue with
> a persistence layer, I may have slowed things down.
>
> Here's my code so far: http://paste.pound-python.org/show/18411/
>

Are you using the cPickle module ? I cannot see the "import" statement
in your code. cPickle is much faster than pickle (see Python doc.).

Also, don't forget to specify "protocol=-1" as keyword argument in
the "dumps" and "loads" functions, it will force the use of the
faster protocol.

Cheers,
Matias.

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to