[erlang-questions] Strange optimization result
Thomas Lindgren
thomasl_erlang@REDACTED
Mon Oct 22 14:11:56 CEST 2007
--- Caoyuan <dcaoyuan@REDACTED> wrote:
> It seems GC is also a key for performance now :-)
> per my tbray4.erl
> code, which uses plain Dict
>
> After I added [{min_heap_size, 3000}] to spawn_opt,
> the elapsed time
> dropped from 7.7 sec to 5.7s immediately.
>
> The code is at:
>
http://blogtrader.net/page/dcaoyuan/entry/learning_coding_parallelization_was_tim
That's a 35% speedup just from sizing the heap right.
So it seems the internal VM heuristics for this could
be tuned or improved.
Best,
Thomas
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the erlang-questions
mailing list