[m-rev.] diff: disable GC during startup
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.
> As above.
You might get more milleage by simply increasing the initial heap size.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 490 bytes
Desc: Digital signature
More information about the reviews