Forgive my ignorance, because I'm not a computer engineer, but with roots in biology. I have become a great fan of pre-allocation objects (varieties of SO & R Inferno varieties by Patrick Burns) and want to improve my coding. Instead of this fact, I was thinking about writing more efficient tasks and following questions.
Is there any benefit in removing the variable that will be overwritten at the beginning of the next loop, or is it just a waste of time? For logic, suppose the size of the old and new variables is very similar or similar.
No. Automatic garbage collection will take care of this properly.
Comments
Post a Comment