This repository has code from yosefk.com/blog, in case you want to run it without copying bit by bit from a given post.
- The code from A 100x speedup with unsafe Python: numpy-perf.py
- The worker thread pool with a limited form of parallel_for that works on WebAssembly from "Enabling" C threads in a Python / Wasm environment: worker_pool.h