Parallel make for perlbrew

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.

This entry was posted in p5p, perl programming, toolchain and tagged , . Bookmark the permalink. Both comments and trackbacks are currently closed.

3 Comments

  1. Posted March 12, 2011 at 4:21 pm | Permalink

    Hi dagolden,

    Be nice to us Solaris users and have perlbrew in your patch run "dmake" behind the curtains in Solaris.

    C.

  2. Posted March 24, 2011 at 9:37 am | Permalink

    It seems the -j option needs to be after install subcommand since about v0.18 of perlbrew...

© 2009-2014 David Golden All Rights Reserved