<div dir="ltr"><div dir="ltr">On Mon, Sep 14, 2020 at 3:55 AM James Blachly via Digitalmars-d <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 9/13/20 4:50 PM, Daniel Kozak wrote:<br>
> I have tried emsi_containers, memutils and  ikod-containers.<br>
> default D's AA take 1s on my pc<br>
> emsi_containers take 3s realy slow<br>
> memutils was fast but does not realy work (seems it is broken because <br>
> there has been nan at d[0] and many  other indexes)<br>
> ikod-containers take 242ms<br>
<br>
ikod-containers is nice. Don't forget also dklib's khash =)<br>
<br>
<a href="https://github.com/blachlylab/dklib/" rel="noreferrer" target="_blank">https://github.com/blachlylab/dklib/</a><br>
<br></blockquote><div><br></div><div>Does not work, first I have to change  </div><div><br></div><div>auto map = khash!(keytype, valuetype);<br></div><div><br></div><div>to </div><div><br></div><div>auto map = khash!(keytype, valuetype)();<br></div><div><br></div><div>Because I get (source/app.d(20,11): Error: type khash!(uint, double, true, true) has no value)</div><div><br></div><div>And after that it takes 262ms but end up with SIGSEGV.</div><div>But it print right sum, so I guess it is something with freeing when try to dealocate hashmap</div></div></div>