When to call GC.{add,remove}Range in containers?

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 10 04:29:12 PDT 2016


On Monday, 10 October 2016 at 08:26:45 UTC, Kagamin wrote:
> On Monday, 10 October 2016 at 07:12:10 UTC, Nordlöw wrote:
>> should not be scanned by the GC.
>
> Shouldn't be a problem.

What do you mean?

I'm talking about an optimization; don't call addRange when we 
don't need to, because the internal stored `E* _ptr` is 
maintained manually by calls to `*alloc` and `free`.


More information about the Digitalmars-d-learn mailing list