Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Memory use/leak with large number of (?{}) patterns in regex

by dave_the_m (Monsignor)
on Nov 25, 2019 at 09:15 UTC ( #11109177=note: print w/replies, xml ) Need Help??


in reply to Re^3: Memory use/leak with large number of (?{}) patterns in regex
in thread Memory use/leak with large number of (?{}) patterns in regex

There's a lot that *could* be done. It's a complete mess at the moment and needs an overhaul - it affects lots of things, not just this issue, e.g. unnecessary slowness using a regex object for a match compared with a literal pattern. Really, the capture state needs splitting off into a separate data structure from the main regex data structure, so that it can be swapped in and out easily, and so a qr// object can be used in multiple places without internally having to clone the whole thing each time.

It's on my very long list of things to be do, but I'm not likely to do it any time soon.

Dave.

  • Comment on Re^4: Memory use/leak with large number of (?{}) patterns in regex

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-10-23 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (238 votes). Check out past polls.

    Notices?