Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: regex gotcha moving from 5.8.8 to 5.30.0?

by kschwab (Vicar)
on Feb 10, 2021 at 16:40 UTC ( [id://11128187]=note: print w/replies, xml ) Need Help??


in reply to regex gotcha moving from 5.8.8 to 5.30.0?

I'm assuming the test data and sample code reproduces the slowness, but doesn't really show all the requirements.

Is that right?

Because looking at the generated test data, it seems like there should be some much faster way of parsing it. Assuming, for example, the file has important bits already newline separated, it feels like a simpler line-by-line read watching for /^begfoo/ and /^endfoo/ and keeping track of state would be faster.

Can you provide a more real-world view of what's being done, or is it just too much test data and code to present here?

Edit: Not dismissing the importance of the performance regression...that's pretty bad.

  • Comment on Re: regex gotcha moving from 5.8.8 to 5.30.0?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-25 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found