[m-rev.] diff: disable GC during startup

Paul Bone pbone at csse.unimelb.edu.au
Mon May 9 10:08:14 AEST 2011


On Thu, May 05, 2011 at 03:57:49PM +1000, Peter Wang wrote:
> [On my machine, this reduced the run time of an empty Mercury program in
> the hlc.gc grade from 2.7 ms to 1.1 ms.  The equivalent C program takes
> 0.26 ms.  The Mercury libraries were statically linked.  Measured with a
> simple C program which does fork/exec/wait in a loop to avoid shell
> overhead.  CPU frequency scaling was disabled.]
> 
> Branches: main
> 
> Disable garbage collection during early runtime initialisation, when little or
> no garbage is created anyway.
> 
> runtime/mercury_wrapper.c:
> 	As above.
> 

You might get more milleage by simply increasing the initial heap size.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20110509/50a97e7e/attachment.sig>


More information about the reviews mailing list