[erlang-questions] Strange optimization result

Thomas Lindgren <>
Mon Oct 22 14:11:56 CEST 2007

--- Caoyuan <> 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:

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.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the erlang-questions mailing list