Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: length() and the Schwartzian transform

by hazylife (Monk)
on Mar 06, 2014 at 09:33 UTC ( #1077195=note: print w/replies, xml ) Need Help??

in reply to Re: length() and the Schwartzian transform
in thread length() and the Schwartzian transform

NOT to show its speed or lack thereof
My main issue with that example is not that it's slow, but that it's misleading. For string scalars, Perl's length returns a value that has already been calculated (and cached) elsewhere. It's just a dumb "accessor method" for that internally stored value, which makes caching it pointless.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2016-10-25 09:44 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (315 votes). Check out past polls.