clintbellanger/flare — Issue #297: Is resetting all array members really necessary when clearing arrays?
Author: Sevis
Created: 2012-02-22 21:16:01+00:00
State: open

At the moment, most code that handles clearing of arrays will reassign default values to all elements of the arrays, before setting the used-size to 0. Does this actually serve any purpose? While resetting strings to save memory and this practice perhaps making debugging easier, would there be any problems if all these methods would only reset the array counter?

(I think this could improve level transition times, although I'm not sure if that's a concern for anyone (it isn't on my hardware).)