You are addressing issues that have always been of concern to enterprise developers versus individual PC developers.  Yes, Yes, Yes, there are individual PC developers that care about efficiencies.  I do not want to go there.  In an enterprise implementation a 1000 NEWs versus 1 NEW and a 1000 KILLs is more expensive on overall computer resources.  Even though the little millisecond differences are nothing in and of themselves, the cumulative effect can be devastating on system performance.  Whereas those extera milliseconds in the application develped for the individual on an individual workstation has little effect.
 
Depending upon the M implementation and the operating system upon which rides, there may be system configuration limits that you could run into.   Each process may have a maximum limit on stack space.  In your example this would not be an issue as someone said the NEW inside the loop is a push and a pop done 1000 times.

Reply via email to