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

Bytes::split_off - check fast path first #693

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

braddunbar
Copy link
Contributor

Follow up to #689

  • If at == self.len(), we already know at <= self.len().
  • If at == 0, we already know at <= self.len().

Follow up to tokio-rs#689

* If `at == self.len()`, we already know `at <= self.len()`.
* If `at == 0`, we already know `at <= self.len()`.
@braddunbar braddunbar self-assigned this Apr 13, 2024
@braddunbar braddunbar merged commit ce09d7d into tokio-rs:master Apr 24, 2024
15 checks passed
@braddunbar braddunbar deleted the split-off-fast-paths branch April 24, 2024 12:23
@mox692 mox692 mentioned this pull request Jul 30, 2024
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