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

Use the SHA-NI extension backend with enabled asm feature #224

Merged
merged 3 commits into from Jan 30, 2021

Conversation

newpavlov
Copy link
Member

The SHA extension backend is significantly faster then our ASM code, so with this change on x86 targets we first will check if CPU has the extension and only then we will fallback either to ASM or software implementation.

Closes #220.

cc @dgbo

@newpavlov newpavlov merged commit f6a0efd into master Jan 30, 2021
@newpavlov newpavlov deleted the sha2/asm_ext branch January 30, 2021 19:09
@not-an-aardvark
Copy link
Contributor

Thanks for making this change. Would it make sense to do the same thing with SHA1 in addition to SHA2? I'm in a similar situation where I'd like to use the SHA1 intrinsic if available, otherwise fall back to the asm implementation. As-is it seems like the asm feature disables the intrinsics.

@not-an-aardvark
Copy link
Contributor

I went ahead and created #225 to apply the same change to SHA1.

@dgbo
Copy link

dgbo commented Feb 1, 2021

Thank you! This does solve our problem.

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.

Use sha2-asm for feature compress on aarch64?
3 participants