www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - GC Jitter Reduction

reply "Suminda Dharmasena" <sirinath1978m gmail.com> writes:
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
Jun 16 2014
parent "Paul O'Neil" <redballoon36 gmail.com> writes:
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
Jun 16 2014