Use Parmap to improve Parallelism.

The results for generating 10000 swg doc shows that the improvement by
parallelism is huge