Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Bug or WAD in lvalue substr? (again.)

by BrowserUk (Patriarch)
on May 27, 2008 at 20:24 UTC ( [id://688730]=note: print w/replies, xml ) Need Help??


in reply to Re: Bug or WAD in lvalue substr? (again.)
in thread Bug or WAD in lvalue substr? (again.)

Indeed, that nails it. Once a better benchmark is used, so that the lvalue variant no longer shows as slower than both the reverse-chop-reverse and regex versions, then the much smaller difference between lvalue and 4-arg makes much more sense, in the light of this interpretation of the opcode tree. Thanks.

It's always good to air these things here rather than bothering p5p with them. And who knows, maybe the simple case optimisation will turn up at some point in the future. The map in a void context probably wasn't a item on anyones high priority list either, but someone found the problem interesting enough to pursue it.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-03-28 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found