Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Not returning scalars(SV) to optimize and save memory?

by ikegami (Pope)
on Dec 06, 2007 at 20:30 UTC ( #655495=note: print w/replies, xml ) Need Help??


in reply to Re: Not returning scalars(SV) to optimize and save memory?
in thread Not returning scalars(SV) to optimize and save memory?

I disagree with your conclusion. FALSE and 1==0 produce exactly the same code, yet in one place the results say one is 119% times the speed of the other, and in another place the results say one is 715% times the speed of the other.

A better conclusion would be that the benchmark is useless. The reason might be that external factors (such as cache misses, context swapping) have a stronger influences on that the speed of those operations than the choice of operation.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://655495]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2018-05-23 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?