[erlang-questions] Efficiency of splitting binaries
Thu Oct 25 01:16:38 CEST 2007
Richard Andrews wrote:
>>> I currently use iolist_size() to check the size of the input binary then
>>> recursively break off a chunk from the front with something like, eg.
>> Why are you using iolist_size()? Is it possiblethat your input is not a
> What other way is there to determine the length of a binary?
size/1 (works on binaries and tuples), while length/1 works on lists e.g.:
> Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage.
> erlang-questions mailing list
More information about the erlang-questions