If you've ever built Perl from scratch, you probably know how much faster it can be to make and test in parallel. On the other hand, if you use perlbrew on a multi-core processor, you probably already figured out that it wasn't using all your processors.
I was very pleased to discover an undocumented '-j' option in perlbrew 0.17 that switches on parallel make:
$ perlbrew -j 5 install perl-5.12.3
Currently, this only runs make in parallel, but I've submitted a patch to make it switch on parallel testing as well (for recent Perl's that support it). The patch also documents the option.
I hope the new version will be out soon, but if you have 0.17, you can already start using '-j' for a small speed boost.
3 Comments
Hi dagolden,
Be nice to us Solaris users and have perlbrew in your patch run "dmake" behind the curtains in Solaris.
C.
I'm not the owner of the project, but you can fork the perlbrew github repository and send a patch in yourself.
It seems the -j option needs to be after install subcommand since about v0.18 of perlbrew...