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

A faster NEON vmask any() and all() #483

Merged
merged 2 commits into from
Aug 2, 2024
Merged

A faster NEON vmask any() and all() #483

merged 2 commits into from
Aug 2, 2024

Conversation

solidpixel
Copy link
Contributor

@solidpixel solidpixel commented Jul 31, 2024

This PR changes the NEON implementation of the any() and all() vmask functions to use simple horizontal min/max operations, rather than a test against a specific mask bit pattern, which NEON does not support natively.

Performance impact on Apple M1:

  • A 350 byte reduction in binary size.
  • A 0.3% improvement to encode performance (Kodak -medium).
  • A 5% improvement to decode performance.

Fixes #482

@solidpixel solidpixel added this to the 4.9.0 milestone Jul 31, 2024
@solidpixel solidpixel merged commit 8bc51bc into main Aug 2, 2024
4 checks passed
@solidpixel solidpixel deleted the neon_any_all branch August 2, 2024 10:56
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.

NEON any/all could be faster ...
2 participants