Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elixir - is there a performance penalty using it instead of plain erlang?

Tags:

erlang

elixir

Elixir seems cool but I wonder about the downsides.. if any..

Are there any other potential downsides when choosing it over erlang ?

like image 213
GabiMe Avatar asked Aug 24 '13 10:08

GabiMe


2 Answers

Elixir reuses most of the compilation stack used by Erlang, so our bytecode is in general very close to the one you would get by compiling Erlang itself. In many cases, it just isn't the same because we include some reflection functions like __info__/1 in the compiled module. Also, there is no conversion cost in between calling Erlang and Elixir and it will never be.

like image 195
José Valim Avatar answered Oct 18 '22 06:10

José Valim


Since elixir compiles directly to Beam bytecode, you don't incure any intermediate costs like a jitter if that's your concern.

like image 23
Ryan Cromwell Avatar answered Oct 18 '22 06:10

Ryan Cromwell