[erlang-questions] Optimization help required: find 0,0,1 code in binary
Jesper Louis Andersen
Wed Feb 9 12:43:05 CET 2011
2011/2/9 Max Lapshin <max.lapshin@REDACTED>:
> I've refactored code and got such numbers:
> 9 microseconds for beam code
> 3 microseconds for HiPE
> 0,7 microseconds for C code
I wonder if you can cheat and fast-path the common variant where the
offset is 0 by handling it outside the functions with the 'Offset'
parameter. The 'binary' modules (binary:split/2,3) also comes to mind
as something to try.
More information about the erlang-questions