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

Assembly version of AndUnsafeInplace? #33

Open
shenwei356 opened this issue Jul 9, 2021 · 1 comment
Open

Assembly version of AndUnsafeInplace? #33

shenwei356 opened this issue Jul 9, 2021 · 1 comment

Comments

@shenwei356
Copy link

I need a faster AND(x, y []byte function (stackoverflow post, and benchmark repo) and just find you provide one.

func AndUnsafeInplace(main, arg []byte) {}

It's so fast by converting every 8 bytes to uint64,

I'm wondering if it could be faster to use golang assembly code utilizing SIMD instructions.

I just begin to learn assembly language, hope I can help one day.

@shenwei356
Copy link
Author

shenwei356 commented Jul 13, 2021

I wrote one https://github.com/shenwei356/pand

It works, and the performance is OK.

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

No branches or pull requests

1 participant