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
BytesMut's BufMut impl is much slower than Vec's #81
Comments
Could branching between four different possible representations be a potential handicap as well? I think a more promising direction for optimization would be to cut down on mutating APIs to optimize the primary use case for If extension API on I can put these reformist ideas in more detail in an RFC-like issue if there is interest in this direction from the development team. |
@mzabaluev Sure, more details would be needed to consider the change:
|
I've done my homework in #268. |
Currently, it is ~2x slower. A cursory investigation reveals that there are way too many
is_inline
checks. Removing them brings the impls back on par.The text was updated successfully, but these errors were encountered: