<div dir="ltr">I second that.<div><br></div><div>BTW the process dictionary version is 50 times faster on mine computer.</div><div><br></div><div><a href="https://github.com/andreaferretti/kmeans/pull/13">https://github.com/andreaferretti/kmeans/pull/13</a><br></div><div><br></div><div>Anyway I would definitely not use Erlang for this sort of task in the production. I would write NIF or use port or C-node for this sort of task.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 24, 2015 at 11:36 AM, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02/24/2015 10:53 AM, Björn Gustavsson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Feb 24, 2015 at 9:40 AM, Andrea Peruffo<br>
<<a href="mailto:andrea.peruffo1982@gmail.com" target="_blank">andrea.peruffo1982@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This:<br>
<a href="https://github.com/andreaferretti/kmeans" target="_blank">https://github.com/<u></u>andreaferretti/kmeans</a><br>
is a benchmark of different languages on a kmeans clustering algo.<br>
<br>
I made an implementation of it but is terribly slow...<br>
<br>
A question is about the data structure "dict" I used, is that the proper use<br>
case or there is anything better?<br>
I have checked with "ets" but looks even slower...<br>
<br>
</blockquote>
<br>
Using sofs was 10 times faster on my computer:<br>
</blockquote>
<br></span>
If only a kind soul could improve the sofs documentation so it is understandable by lesser human beings... :-)<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Loïc Hoguin<br>
<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a></font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>