Some micro-optimizations which can be a huge win in script performance.
Improved parallelism
Parallelized version is also able to work in sequential mode when num-workers = 1