C
Chris Theis
[SNIP]
The benefit depends on the application. Doing highly memory intensive
computer graphics or simulations you might resort to your own memory
management anyway, and for some applications you´ll sometimes (have to)
sacrifice elegance for speed.
Chris
[SNIP]From your comment below about re-using memory, though, I'm guessing that the
output object is something that you have in reserve, and simply re-use it as
needed. Is that correct? In that case, it sounds like a good solution for
your particular problem. But as a general practice (i.e, outside your
particular case), I still see no real benefit.
The benefit depends on the application. Doing highly memory intensive
computer graphics or simulations you might resort to your own memory
management anyway, and for some applications you´ll sometimes (have to)
sacrifice elegance for speed.
Chris