Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: swapping vars, two ways, 2 results...

by Sihal (Pilgrim)
on Dec 18, 2002 at 23:04 UTC ( [id://220978]=note: print w/replies, xml ) Need Help??


in reply to Re: swapping vars, two ways, 2 results...
in thread swapping vars, two ways, 2 results...

well it does use less memory, but that may be due to the length of the vars...
Anyway, this was a kinda stupid post but I wanted to write it cause I saw in one of my team mates code that he would never swap perls way, but rather Cs way, using a temp var. I first thought why wrinting it Cs way when you can use a more compact form. But then I saw that in some case it was actually totally different both in terms of cpu usage and mem, hence the post.
  • Comment on Re: Re: swapping vars, two ways, 2 results...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2025-02-07 01:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (94 votes). Check out past polls.