[erlang-questions] Why so slow kmeans implementation

Loïc Hoguin essen@REDACTED
Tue Feb 24 11:36:13 CET 2015


On 02/24/2015 10:53 AM, Björn Gustavsson wrote:
> On Tue, Feb 24, 2015 at 9:40 AM, Andrea Peruffo
> <andrea.peruffo1982@REDACTED> wrote:
>> This:
>> https://github.com/andreaferretti/kmeans
>> is a benchmark of different languages on a kmeans clustering algo.
>>
>> I made an implementation of it but is terribly slow...
>>
>> A question is about the data structure "dict" I used, is that the proper use
>> case or there is anything better?
>> I have checked with "ets" but looks even slower...
>>
>
> Using sofs was 10 times faster on my computer:

If only a kind soul could improve the sofs documentation so it is 
understandable by lesser human beings... :-)

-- 
Loïc Hoguin
http://ninenines.eu



More information about the erlang-questions mailing list