Merge pull request #156 from danw/regen_affinity

Improve regen performance by setting cpu affinity