Josh Rosenberg added the comment:

Do you mean ProcessPoolExecutor? Thread based pools don't involve serialization.

It would be good for ThreadPoolExecutor to have it as well, to make it easier 
to switch between executors, but only ProcessPoolExecutor is suffering from 
serialization overhead. Threads share the same memory space after all; 
references to data get passed directly, though you might choose to copy.copy or 
copy.deepcopy a root data "template" so each thread has its own unique copy 
that it can mutate.

----------
nosy: +josh.rosenberg

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21423>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to