[m-dev.] for review: clean up MLDS init functions

Ralph Becket rbeck at microsoft.com
Fri Nov 10 00:26:38 AEDT 2000


>From Fergus Henderson on 09/11/2000 12:46:57
> 
> Well, there's still some performance problems.  The performance may
> not be exponential, but stack usage seems to be at least linear, and
> the constant factor is too high.  In particular, here's a test case:
> apply the following patch, and then run 
> 
> 	cd ../samples
> 	MERCURY_COMPILER=../compiler/mercury_compile \
> 		mmc -H --dump-mlds all -cv interpreter.m
> 
> This crashes with a stack overflow, unless you increase the stack size
> from the default of 4M.  In fact it uses more than 25M of stack space,
> even though the data structure that it is dumping is much smaller than
> that -- the total heap usage without --dump-mlds is only 12M, and only
> part of that is the MLDS.

Thanks for the patch - I'll look into this one.

--
Ralph Becket      |      MSR Cambridge      |      rbeck at microsoft.com 

--------------------------------------------------------------------------
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