Skip to content

Conversation

folkertdev
Copy link

Just a small readability win.

https://godbolt.org/z/9s3zMebrE

  • For memmove16, the assembly is basically equivalent for the happy path
  • For memcpy_within_slice the standard path that calls memmove has fewer instructions

In practice this logic is apparently not exercised enough to show any measurable effect


Btw I'm looking through your code base as a part of this rust project goal rust-lang/rust-project-goals#258. We've learned some things in zlib-rs that might be useful here too.

@CLAassistant
Copy link

CLAassistant commented May 9, 2025

CLA assistant check
All committers have signed the CLA.

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