On 9/13/20 4:50 PM, Daniel Kozak wrote:
> I have tried emsi_containers, memutils and ikod-containers.
> default D's AA take 1s on my pc
> emsi_containers take 3s realy slow
> memutils was fast but does not realy work (seems it is broken because
> there has been nan at d[0] and many other indexes)
> ikod-containers take 242ms
ikod-containers is nice. Don't forget also dklib's khash =)
https://github.com/blachlylab/dklib/
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