[zeromq-dev] Fwd: Re: New Python bindings

Martin Sustrik sustrik at 250bpm.com
Mon Feb 15 10:38:59 CET 2010

Jon Dyte wrote:

> On the other hand it might  be cheaper to just take the hit of the copy, as 
> using the ref count and free function, means the io thread would end up 
> calling into the python runtime, which might slow things down more and
> possibly cause other threading issues.

Right. However, it depends on the Python runtime. Would it survive being 
called from two different threads? If not so, making a copy of the 
message is much more efficient than wrapping each call in a mutex.


More information about the zeromq-dev mailing list