LDC does have an optimization pass that will move GC allocations to the stack if it can prove that they do not escape.

On Monday, 16 June 2014 at 20:29:01 UTC, Suminda Dharmasena wrote:
Hi,

A lot of variables need not be GCed. By analysing usage you can
determine when to deallocate. Even in multi threaded usage you
can have reference counts on last usage points within each thread.

Perhaps such a scheme might be worth debating with a view to
improve performance and reduce jitter.

Suminda

  • GC Jitter Reduction Suminda Dharmasena via Digitalmars-d
    • Re: GC Jitter Reduction Paul O'Neil via Digitalmars-d

Reply via email to