[erlang-questions] Speeding up string matching

Claes Wikstrom <>
Wed Sep 27 16:52:06 CEST 2006


Joe Armstrong wrote:
> If you want to do faster line splitting you might like to use lists 
> instead of binaries
> 

We really really should have been able to write

f(Line/binary, "\n", Tail/binary) ->
    handle_line(Line),
    f(Tail)


to extract the first line.


/klacke



More information about the erlang-questions mailing list