Message180533
| Author |
pitrou |
| Recipients |
neologix, pitrou, sbt |
| Date |
2013年01月24日.16:44:53 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1161566103.419088047.1359045887257.JavaMail.root@zimbra10-e2.priv.proxad.net> |
| In-reply-to |
<1359042546.71.0.578815247507.issue17025@psf.upfronthosting.co.za> |
| Content |
> Here's an implementation of the idea posted on python-ideas
> (http://mail.python.org/pipermail/python-ideas/2013-January/018846.html).
>
> The principle is really simple, we just serialize/unserialize the
> objects before/after holding the locks. This leads to reduced
> contention.
I would like to suggest again my idea of doing it in Connection instead,
with new methods (e.g. locked_send and locked_recv). Especially given
it can be useful in user code to have a thread-safe Connection (I'm in
this situation currently). |
|