<div dir="ltr"><div><div><div><div><div><div><div>This:<br><a href="https://github.com/andreaferretti/kmeans">https://github.com/andreaferretti/kmeans</a><br></div>is a benchmark of different languages on a kmeans clustering algo.<br><br></div>I made an implementation of it but is terribly slow...<br><br></div>A question is about the data structure "dict" I used, is that the proper use case or there is anything better?<br></div>I have checked with "ets" but looks even slower...<br></div><br></div>Is there anything wrong with the provided implementation?<br><br></div>Thanks in advance.<br><div><div><br><div><div><div><br></div></div></div></div></div></div>