[zeromq-dev] Fwd: Re: New Python bindings
Martin Sustrik
sustrik at 250bpm.com
Tue Feb 16 08:32:14 CET 2010
Brian,
> I implemented the GIL release and Py_INCREF/PyDECREF stuff to try to
> do a proper non-copy
> send. It works in some cases, but deadlocks in others (specifically
> the latency benchmark). My
> guess is that when two processes are sending message back and forth
> and releasing/acquiring the GIL
> they end up deadlocking each other in some subtle manner. I have
> removed this for now and
> am just doing the copy. I might revisit this later, but the
> performance benefit (possibly 0 or worse)
> is not worth the effort at this point.
No worries. We've spent quite a lot of time trying to zero-copy in
various languages (specifically Java and .NET) and it turns out be be
exremely complex (even unsolvable?) task.
Martin
More information about the zeromq-dev
mailing list