Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sub binary use is non-optimal #74

Open
taybin opened this issue Aug 30, 2012 · 1 comment
Open

sub binary use is non-optimal #74

taybin opened this issue Aug 30, 2012 · 1 comment

Comments

@taybin
Copy link

taybin commented Aug 30, 2012

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

@cmullaparthi
Copy link
Owner

Thanks for the report. I will look into this shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants