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

Implement compress for NEON #369

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

Conversation

silvanshade
Copy link

@silvanshade silvanshade commented Jan 7, 2024

This implements the compress functionality for Neon so that it has feature parity with the other SIMD backends.

Unfortunately, as suggested in the comment in the source, it seems to be no faster than the scalar implementation.

However, I figured it would at least be worth creating the PR in case someone can figure out a way to improve it.

I did try a few different techniques for implementing various parts but none of them seemed to help, or they were sometimes slower. I'm no Neon expert either so mostly this was just a naive attempt to see what the end result would be.

EDIT: I should note that I only tested this on an M3 Max MacBook Pro so it might have different performance on another platform if someone can give it a try.

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.

None yet

1 participant