On Mon, Sep 14, 2020 at 7:25 AM Daniel Kozak <kozzi11@gmail.com> wrote:

Does not work, first I have to change  

auto map = khash!(keytype, valuetype);

to 

auto map = khash!(keytype, valuetype)();

Because I get (source/app.d(20,11): Error: type khash!(uint, double, true, true) has no value)

And after that it takes 262ms but end up with SIGSEGV.
But it print right sum, so I guess it is something with freeing when try to dealocate hashmap

But this line will fix that for me:

extern(C) __gshared string[] rt_options = [ "gcopt=parallel:0 cleanup:none" ];

So it is something with GC trying to free already freed memory I geuss