in reply to Compile perl for performance

I would go though the points listed in Nicholas Clark's "When Perl is Not Quite Fast Enough", which mostly suggests compiling a Perl without threads and some other compiler options for a "free" speed boost, provided you don't need the features. It also suggests some nastier stuff like opcode golf, but I assume that your main goal is to improve the program speed without changing the program itself.

I would also look at toggling the COW-feature and potentially switching the compiler flags to optimize for the target CPU architecture specifically.

Unfortunately, neither I nor Google seem to find the slides online. Maybe sending Nicholas an email prompts him to put the slides online somewhere.

Replies are listed 'Best First'.
Re^2: Compile perl for performance
by learnedbyerror (Monk) on Aug 16, 2018 at 02:42 UTC

    Couldn't find the deck either. I did drop a note to Nicholas and let him know about this post and asked for a link.

    And yes, in this exercise, I am working with code that already have been optimized and am still searching for more speed.

    I believe the CoW feature has been enabled by defaults since 5.20. I have not yet gone native on the arch but will shortly

    Thanks for your response!

    lbe