Optimise computation of orphan packages
Merge pull request #1522 from OCamlPro/small-optim

Optimise computation of orphan packages