binary optimization

Joel Reymont joelr1@REDACTED
Sat Jul 18 10:11:27 CEST 2009


How do I improve this?

src/flashbot.erl:120: Warning: NOT OPTIMIZED: compiler limitation:  
instruction {apply_last,2,6} prevents delayed sub binary optimization

120: handle_info({tcp, _Sock, <<A:32, B:32, C:32, Bin/binary>>},  
Where, State) ->
     Delta = timer:now_diff(now(), {A, B, C}),
     ?MODULE:Where(Bin, State#state{latency = Delta});

	Thanks, Joel

---
Mac hacker with a performance bent
http://www.linkedin.com/in/joelreymont



More information about the erlang-questions mailing list