ibrowse
ibrowse copied to clipboard
sub binary use is non-optimal
After compiling with ERL_COMPILER_OPTIONS=bin_opt_info set for binary use warnings, this was printed.
It might be good to fix these.
src/ibrowse_http_client.erl:974: Warning: NOT OPTIMIZED: called function chunk_request_body/3 does not begin with a suitable binary matching instruction src/ibrowse_http_client.erl:999: Warning: variable 'State' is unused src/ibrowse_http_client.erl:1494: Warning: NOT OPTIMIZED: sub binary is used or returned src/ibrowse_http_client.erl:1497: Warning: NOT OPTIMIZED: sub binary is used or returned src/ibrowse_http_client.erl:1509: Warning: INFO: using a matched out sub binary will prevent delayed sub binary optimization src/ibrowse_http_client.erl:1509: Warning: NOT OPTIMIZED: sub binary is used or returned src/ibrowse_http_client.erl:1513: Warning: NOT OPTIMIZED: sub binary is used or returned src/ibrowse_http_client.erl:1516: Warning: NOT OPTIMIZED: sub binary is used or returned src/ibrowse_http_client.erl:1524: Warning: OPTIMIZED: creation of sub binary delayed src/ibrowse_http_client.erl:1530: Warning: NOT OPTIMIZED: sub binary is used or returned src/ibrowse_http_client.erl:1544: Warning: INFO: using a matched out sub binary will prevent delayed sub binary optimization src/ibrowse_http_client.erl:1544: Warning: NOT OPTIMIZED: sub binary is used or returned src/ibrowse_http_client.erl:1548: Warning: NOT OPTIMIZED: sub binary is used or returned src/ibrowse_http_client.erl:1559: Warning: OPTIMIZED: creation of sub binary delayed src/ibrowse_http_client.erl:1634: Warning: OPTIMIZED: creation of sub binary delayed
Thanks for the report. I will look into this shortly.