[erlang-questions] clueless performance question
Wed Jun 11 01:11:05 CEST 2008
from my PI serial benchmarks, floating point performance is weak point of
Erlang, since float values always allocated on the Heap.
So, if you need to iterate over range [0:0.001:1] using tail recursion, it's
much faster to iterate over integers [0:1000] and multiply it inside the
function to the step 0.001 .
The solution to this is itroducing APL/K/J/Q/Matlab - like vector/matrix of
doubles datatype with possible SIMD and SMP optimizations for element-wise
and reduction operators.
This was discussed on this list several months ago.
Raoul Duke wrote:
> (i mean this with an eye towards getting more arguments for Erlang,
> not against it. i googled around but haven't hit anything super
> relevant to this question yet.)
> Erlang excels at concurrency and distribution. What aspects of the
> current Erlang VMs (HiPE and non-HiPE) make them possibly slower for
> serial computation vs. some other well-known VMs? If somebody wanted
> to work on tweaking the serial computation part, what might be the top
> things to examine (e.g. from personal experience, or from profiler
> usage)? This could be anything, like doing work on VM inner loops, or
> adding some more automatic optimization abilities.
> erlang-questions mailing list
View this message in context: http://www.nabble.com/clueless-performance-question-tp17764097p17766840.html
Sent from the Erlang Questions mailing list archive at Nabble.com.
More information about the erlang-questions