[zeromq-dev] how to get it to run faster?
Asher Benjamin
asherbenj at gmail.com
Mon Apr 2 19:29:01 CEST 2012
You may also want to check the number of python processes you are starting.
On, one machine Winx64 there where many launched process that werent used.
On Mon, Apr 2, 2012 at 8:59 AM, Matias Guijarro <matias.guijarro at esrf.fr> wrote:
> 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
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list