bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #18396] stack size setrlimit call interacts badly with Solaris/


From: Paul Smith
Subject: Re: [bug #18396] stack size setrlimit call interacts badly with Solaris/x86 kernel bug
Date: Wed, 29 Nov 2006 09:37:11 -0500

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]