Speed of hash tables compared to lua
kozzi11 at gmail.com
Mon Sep 14 05:28:19 UTC 2020
On Mon, Sep 14, 2020 at 7:25 AM Daniel Kozak <kozzi11 at gmail.com> wrote:
> Does not work, first I have to change
> auto map = khash!(keytype, valuetype);
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Digitalmars-d