[Python-ideas] reducing multiprocessing.Queue contention (original) (raw)
Richard Oudkerk shibturn at gmail.com
Wed Jan 23 14:13:30 CET 2013
- Previous message: [Python-ideas] reducing multiprocessing.Queue contention
- Next message: [Python-ideas] reducing multiprocessing.Queue contention
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 23/01/2013 12:27pm, Charles-François Natali wrote:
Maybe I wasn't clear. I'm not suggesting to not hold the lock when sending less than PIPEBUF, since it wouldn't work in the case you describe above. I'm suggesting to serialize the data prior to acquiring the writer lock, to reduce contention (and unserialize after releasing the reading lock).
That is reasonable. In fact if we should probably serialize when put() is called to catch any pickling error early.
-- Richard
- Previous message: [Python-ideas] reducing multiprocessing.Queue contention
- Next message: [Python-ideas] reducing multiprocessing.Queue contention
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]