The real issue is number 2. Budman is totally right that allocation is relatively slow compared to simple math, so if you allocate/deallocate objects everytime you do simple computations, the mere allocation/deallcoation will be several orders of maginutude slower than the raw computation. Or said another way, removing the need for continuous allocation/deallocation would make it several orders of magnitude *faster*.
And it's worse in a garbage collected environment.
However what Josh says is that these computations are such a small fraction of the overall processing that an overhead there can be neglected (in favor to increased ease of use).
Well, that's my understanding.
And it's worse in a garbage collected environment.
However what Josh says is that these computations are such a small fraction of the overall processing that an overhead there can be neglected (in favor to increased ease of use).
Well, that's my understanding.