4 ms·
Data exchanged between the processes is serialized with pickle. Pickling is slow, adds latency, and doesn't work on all objects. https://docs.python.org/2/libr
by andor 11y ago
Data exchanged between the processes is serialized with pickle. Pickling is slow, adds latency, and doesn't work on all objects.
https://docs.python.org/2/library/multiprocessing.html#pipes-and-queues https://docs.python.org/2/library/multiprocessing.html#pipes...
- aidenn0 11y agoThat sucks; there's no shared-memory message-queue implementation?
- beagle3 11y agoany message queue implementation would require serializing (which the Python standard library provides with "pickling"). If there was a reasonable way to share live objects without the GIL, Python threads would use them.