Basic question about Erlang binaries

Igor Ribeiro Sucupira igorrs@REDACTED
Sat Sep 26 05:54:29 CEST 2009


Hello.

Can I retrieve the value of a specific bit position of an arbitrary
Erlang binary in guaranteed constant time?

>From some tests I've made, it seems pattern matching to pick a
specific bit near the middle of a binary takes linear time with
respect to the size of the binary. Is that correct?

Thanks.
Igor.

-- 
"The secret of joy in work is contained in one word - excellence. To
know how to do something well is to enjoy it." - Pearl S. Buck.


More information about the erlang-questions mailing list