Showing posts with label argument. Show all posts
Showing posts with label argument. Show all posts

Monday, June 30, 2014

Repurposing Function Variables

Sometimes, I create too many local variables inside my functions. This can help with code-readability, especially if the function is involved. So what's the overhead in declaring these new variables that exist for a fraction of a second before they're garbage collected? Probably not too high — you're not going to see any perceivable performance improvements by declaring less variables.