[erlang-questions] is length(L) fast?

Zabrane Mickael zabrane3@REDACTED
Tue Jan 24 22:21:57 CET 2012


Very interesting analysis. Thanks Marek.

Regards,
Zabrane


On Jan 24, 2012, at 3:59 PM, Marek Majkowski wrote:

> On Wed, Jan 4, 2012 at 16:38, Zabrane Mickael <zabrane3@REDACTED> wrote:
>> Is the call to length(L) traverse all the list ?
>> or is it something already pre-computed internally (i.e constant time =
>> fast)?
> 
> May be out of interest:
>   http://www.lshift.net/blog/2010/02/28/memory-matters-even-in-erlang
> 
> Cheers,
>  Marek




More information about the erlang-questions mailing list