[erlang-patches] Performance optimizations on erl_eval

José Valim <>
Thu May 9 00:54:36 CEST 2013


I am sending a performance optimization for erl_lint. We have noticed when
profiling code compilation that a bunch of time was being spent on
erl_lint:default_types() which simples builds a dict. We observed those
default types in the dictionary were not actually used, in fact, they were
always discarded when looping the dictionary. We have removed those entries
from the dictionary and compiled them into a function clause.

I have rebuilt Elixir's test suite with this patch and got around a 8%
performance speed in some compilation cases.

git fetch git://github.com/josevalim/otp.git erl_lint-default_types


Thank you!

*José Valim*
Skype: jv.ptec
Founder and Lead Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130508/ce494414/attachment-0001.html>

More information about the erlang-patches mailing list