top 8 entry from grpof of my app :-(

Oskar Linde oskar.lindeREM at OVEgmail.com
Wed Jan 10 01:08:19 PST 2007


%u wrote:
> Thanks for the info.
> 
> Sorry, I should mention the program do some game tree searching.  It need to
> allocate some memory for each new node, and then do some calculation. In that
> test, the total memory allocated is about 500M, and  take about 10 min.  I should
> also mention most part of the run it only allocates memory, but doesn't release
> much until the end when the program exits.

I'd recommend disabling the GC while building the tree.

std.gc.disable();

std.gc.enable() when you need it again.

/Oskar


More information about the D.gnu mailing list