[erlang-questions] Erlang doesn't suck

Kostis Sagonas <>
Thu Oct 2 20:27:49 CEST 2008

Paul Fisher wrote:
> Kostis Sagonas wrote:
>>> When you do big amount of inter module calls you gain less
>> This is slightly misleading: there is no "bad" treatment of inter module
>> calls (other than that dictated by the semantics of hot code loading).
>> What does have a non-negligible cost is so called mode-switching calls:
>> calling interpreted code from native or vice versa. The simplest way to
>> avoid this is to native compile everything. Alas, currently this is not
>> so easy to do for standard libraries.
> Wow, this is a wonderful nugget of information.  I had not considered 
> that the transition is the real performance killer...
> Just to clarify, I should expect performance from fastest to slowest to be:
> 1) inter-module HiPE -> HiPE
> 2) inter-module BEAM -> BEAM
> 3) inter-module HiPE -> BEAM or inter-module BEAM -> HiPE
> right?



More information about the erlang-questions mailing list