What is Nostr?
Yann Büchau :python: /
npub1p27…djxd
2024-02-14 08:48:37

Yann Büchau :python: on Nostr: Insight of the week: If you want to parallelize data processing with #Python with ...

Insight of the week:

If you want to parallelize data processing with #Python with :scons: #scons, call separate scripts. scons runs Python-only builders as threads, which is amazing to keep the code simple and concise and even shared progress bars are possible, but Python's GIL (I guess) makes it super ineffective. Running the builders in a multiprocessing.Process is unreliable and prone to freezing or is downright impossible when your data structures aren't pickleable.
Author Public Key
npub1p27gj7s9ajsgf8m93hz9lwvru3syr56hz59snhu9wyc70f649pyqzgdjxd