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

Broadcasting rules are properly applied to length 1 NumberLists #117

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

nick-paul
Copy link
Collaborator

When updating the broadcasting rules in #97, the rules were not properly applied to the NumberList optimized code. This means that if using a NumberList it would default to standard single item processing. This would lead to the correct result but be much slower that using the NumberList operator.

This update adds the additional cases to the numberlist optimization.

When testing broadcasting across arrays with a shape of [3 35000] this fix led to a ~100x speedup.

@nick-paul nick-paul merged commit 6734779 into master Nov 28, 2024
1 check passed
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.

1 participant