Some extra notes...
Accurate (cgroup aware) nproc is important, as detailed in: https://danluu.com/cgroup-throttling/
The new base58 encoding performs well being around 500 times faster than arbitrary int implementation internal to cpython 3.13 for example