Introducing Sampling to the GC
Etienne Cimon via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 25 13:56:02 PDT 2014
On 2014-05-25 02:17, safety0ff wrote:
> Now I understand what you mean.
>
> I think this is an interesting idea. I've used the idea of reducing
> collection frequency to trade off running time for peak memory usage
> before.
>
> I would be interesting to have these "knobs" available to turn to tune
> application performance.
>
> I think we should do something similar to CDGC for this: use environment
> variables to set the settings at initialization time.
Yes! Exactly, this would be great for prioritizing keeping the memory
tight vs saving cpu cycles, as a set of samples could be verified very
quickly even when allocations go through the freelist and no collection
would even be considered.
More information about the Digitalmars-d
mailing list