Skip to content

strides comparison performance fix, compare discussion #29179 #29188

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xor2k
Copy link
Contributor

@xor2k xor2k commented Jun 12, 2025

As discussed in #29179, here a strides comparison performance fix: negative strides were not accounted for which could have led to lower-than-otherwise-possible performance. Now absolute stride values are considered instead.

@mattip
Copy link
Member

mattip commented Jun 12, 2025

Did any benchmarks change?

@xor2k
Copy link
Contributor Author

xor2k commented Jun 12, 2025

There are no benchmarks for this yet. However, I will modify the one I created last time so we get some numbers on that, too as soon as I have a free moment.

@seberg
Copy link
Member

seberg commented Jun 13, 2025

Might be nice to see a small change in benchmarks. But if it doesn't change much at all, I don't mind. It's just better to use the correct logic either way, IMO.
That said, labs is incorrect on windows since long is 32bits, may need to actually use if/else (I guess with a macro helper). Not sure we already have a macro, it doesn't really look like it.

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.

3 participants