On Wed, 2006-11-29 at 05:49 -0800, Howard Chu wrote:

> Some modern mallocs are good, but stack-based allocation is still better 
> a lot of the time. Especially for temporary variables that are just 
> going to be discarded after a few computations.

Right.  And remember it's not just the code managing the heap, but also
the extra work involved in ensuring that the memory is freed again.
This can mean reworking functions, changing code paths, etc.  I'm not
saying that the performance difference would be significant: without
testing it's difficult to guess.


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to