Best properly way to destroy a 2 dimensional array?
Jonathan Villa via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Apr 6 16:14:10 PDT 2016
On Wednesday, 6 April 2016 at 21:33:14 UTC, Alex Parrill 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
>> ...
>
> Why not make a range instead? No need to reserve memory for the
> entire array if you can compute the elements as-needed.
>
> If you really want an array, std.experimental.allocator will
> let you manually allocate/release objects.
I'm going to try use a custom allocator for tomorrow.
My general idea is first to get the predicted quantity of
combinations so I can divide and parallelize them.
What do you think can be the problem with the lack of
deallocation?
Regards.
More information about the Digitalmars-d-learn
mailing list