Skip to content

Conversation

@ZERICO2005
Copy link
Contributor

Optimized memmove, as it appears to be used a lot by C++ code.

Copy link
Member

@runer112 runer112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. But calc84 is the true optimization specialist, so maybe give him some opportunity to re-review before accepting my approval alone.

@ZERICO2005
Copy link
Contributor Author

Applied some optimizations suggested by calc84maniac to the src == dst optimized version. Compared with the src != dst version, the src == dst version is 1F + 1 slower when src > dst and 1F slower when src < dst.

@adriweb adriweb merged commit 6018d31 into master Sep 27, 2025
9 checks passed
@adriweb adriweb deleted the opt_memmove branch September 27, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants