Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: simple swap...

by athomason (Curate)
on Jul 22, 2000 at 00:19 UTC ( [id://23818]=note: print w/replies, xml ) Need Help??


in reply to simple swap...

I don't think it's a 5.6 thing: I ran eduardo's code on ActiveState 5.6 with these results:
Benchmark: running not traditional, traditional, each for at least 10 +CPU seconds... not traditional: 11 wallclock secs (10.68 usr + 0.02 sys = 10.70 CPU) + @ 364259.16/s (n=3899030) traditional: 11 wallclock secs (10.85 usr + 0.00 sys = 10.85 CPU) @ 4 +74001.38/s (n=5141493)
Judging by the difference, the compiler doesn't seem optimize that kind of switch.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-24 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found