Some performance questions

Jarrett Billingsley jarrett.billingsley at
Tue Feb 3 14:51:37 PST 2009

On Tue, Feb 3, 2009 at 3:44 PM, Chris Nicholson-Sauls
<ibisbasenji at> wrote:
> The
> second reason, is that before every allocation the garbage collector will
> perform a collection run.  This can actually be disabled (at least in
> theory) if you plan on doing several allocations in a short period of time,
> and thereafter re-enabled.

It should be "before every allocation the garbage collector *may*
perform a collection run."  If it collected on every allocation it
would make your program's execution speed next to useless ;)

More information about the Digitalmars-d-learn mailing list