Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Athanasius (Archbishop)
on Dec 21, 2017 at 07:36 UTC ( #1205961=note: print w/replies, xml ) Need Help??


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';

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1205961]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-04-10 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?