Open alxmrs opened 3 months ago
Memory views for shared memory: https://docs.cython.org/en/latest/src/userguide/memoryviews.html
Another approach is free-threaded Python, which is just ramping up (but is going to take some time):
TIL! I didn’t realize threaded Python was coming so soon! Thanks for the pointers.
The Cython tricks may be useful in the near-term for younger versions of Python.
I suspect that the performance of the ThreadPoolExecutor would substantially increase if we strategically placed cython
with nogil
calls.There are drawbacks to process based parallelism; namely, there is a high overhead and IPC latency compared to multithreading.