[m-dev.] for review: change default stack size

Thomas Conway conway at cs.mu.OZ.AU
Fri Dec 15 14:59:38 AEDT 2000


On Fri, Dec 15, 2000 at 02:34:26PM EST, Fergus Henderson wrote:
> On 15-Dec-2000, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> > On 14-Dec-2000, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> > > 	This will also improve performance for programs that
> > > 	don't use much memory, since currently the conservative
> > > 	garbage collector scans the whole of the det stack,
> > > 	including those parts which aren't used.
> > 
> > Unless this effect is significant (e.g. gets a speedup of at least two percent
> > on a program), I think the problems it causes are not worth it. 3.5Mb just
> > isn't that much these days.
> 
> I get a speedup of roughly 2.5% on nrev.

Lies, damm lies, statistics, and benchmarks.

How much difference does it make on any program that anyone uses?

How hard would it be to allocate a larger stack, mprotect it out
and only tell the collector about it as it gets unprotected and used?

Thomas
-- 
 Thomas Conway              Mercurian )O+  
 <conway at cs.mu.oz.au>       Every sword has two edges.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list