We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
BytesMut::set_len
inline set_len call translates to assembler:
set_len
add qword, ptr, [rsp, +, 8], LEN
It is much less instructions than preparing the registers for the call:
mov rsi, qword, ptr, [rsp, +, 8] add rsi, LEN mov rdi, rsp call qword, ptr, [rip, +, _ZN5bytes9bytes_mut8BytesMut7set_len17h54d98ffd051013e5E@GOTPCREL]
The assembler generated with the inline attribute is https://github.com/botika/buf-min/blob/master/benches/README.md from https://github.com/botika/buf-min/blob/master/benches/src/main.rs
The text was updated successfully, but these errors were encountered:
Sounds good and simple, want to make a PR?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
inline
set_len
call translates to assembler:It is much less instructions than preparing the registers for the call:
The assembler generated with the inline attribute is https://github.com/botika/buf-min/blob/master/benches/README.md from https://github.com/botika/buf-min/blob/master/benches/src/main.rs
The text was updated successfully, but these errors were encountered: