Skip to content

Conversation

@ADD-SP
Copy link
Contributor

@ADD-SP ADD-SP commented Dec 25, 2024

Summary

https://docs.rs/bytes/1.0.0/src/bytes/bytes_mut.rs.html#60-65

Now, bytes >= 1 has no inline optimization, so we can remove optimizations which based on outdated assumptions.

`HeaderValue` from integers

`::bytes::BytesMut >= 1` has no inline optimization
@ADD-SP ADD-SP changed the title refactor(header): remove BytesMut inline optimization when creating HeaderValue from integers refactor(header): remove optimizations which are based on outdated assumptions Dec 25, 2024
@seanmonstar seanmonstar merged commit 4e02046 into hyperium:master Dec 27, 2024
10 checks passed
@ADD-SP ADD-SP deleted the add_sp/refactor-simplify-code branch December 30, 2024 09:40
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

Successfully merging this pull request may close these issues.

2 participants