Best properly way to destroy a 2 dimensional array?
Andrea Fontana via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Apr 7 03:05:02 PDT 2016
On Thursday, 7 April 2016 at 10:02:05 UTC, Andrea Fontana wrote:
> On Wednesday, 6 April 2016 at 20:30:33 UTC, Jonathan Villa
> wrote:
>> On Wednesday, 6 April 2016 at 19:54:32 UTC, Jonathan Villa
>> wrote:
>>> I wrote a little program that given some number it generates a
>>
>> TL;DR: My program generates a very large `ubyte[][]`, and
>> after I call destroy and GC.collect() and GC.minimize(), the
>> memory occuping doesn't seems to decrease.
>
> Anything change if you wrap your code like:
>
>
> while ...
> {
> ...
> {
> ubyte[][] ...
> ...
> }
>
> GC.collect();
> GC.minimieze();
> }
>
> ?
Or maybe you could try to do:
combs = null;
before collecting.
More information about the Digitalmars-d-learn
mailing list