in reply to Re: Performance penalty of using qr// (the stupid way)
in thread Performance penalty of using qr//

the benchmark doesn't run for me it simply dies

You’re probably running a 32-bit version of Perl. I did mention that my testing was confined to 64-bit versions, but I should have emphasised this as a requirement. Sorry.

Also you're using qr (compile regex) the stupid way

Thanks for the link, but I don’t understand what you’re getting at. What would the clever way be?

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

  • Comment on Re^2: Performance penalty of using qr// (the stupid way)

Replies are listed 'Best First'.
Re^3: Performance penalty of using qr// (the stupid way)
by Anonymous Monk on Dec 21, 2017 at 10:40 UTC
    compile once and cache as intended? That is  our $re; $re ||= qr...;

    im afk atm ; you might gain some insight about when regex are compiled using

    re  use re 'debug';