Skip to content

Conversation

@malik672
Copy link

Optimizes the shift_right_small function in the algorithms module by replacing the reverse iterator approach with forward indexed loops.

This generates better ASM on both x86 and ARM

@malik672 malik672 requested a review from prestwich as a code owner October 13, 2025 16:49
@malik672
Copy link
Author

@prestwich There's no benchmark for this

@prestwich
Copy link
Collaborator

we should start by adding one then?

@malik672
Copy link
Author

we should start by adding one then?

Yes, I did write it but majority of it was prone to CPU noise.

So I was like yeah, you should write it.

@malik672 malik672 mentioned this pull request Oct 18, 2025
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