[Python-ideas] Do not block threads when pickle/unpickle

Martin Bammer mrbm74 at gmail.com
Mon Jul 16 13:56:34 EDT 2018


Hi,

the old and slow python implementation of pickle didn't block background 
thread.

But the newer C-implementation blocks other threads while dump/load is 
running.

Wouldn't it be possible to allow other threads during this time?

Especially could load/loads release the GIL, because Python objects are 
not available to the Python code until these functions have finished?

Regards,

Martin




More information about the Python-ideas mailing list