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

Optimize performance for non-amd64 architectures #21

Open
fyrchik opened this issue Jun 28, 2021 · 0 comments
Open

Optimize performance for non-amd64 architectures #21

fyrchik opened this issue Jun 28, 2021 · 0 comments
Labels
enhancement Improving existing functionality I2 Regular impact performance More of something per second S4 Routine U4 Nothing urgent

Comments

@fyrchik
Copy link
Contributor

fyrchik commented Jun 28, 2021

Currently we have optimized versions only for AVX/AVX2-enabled architectures. While pure Go implementation also exists, we might want to optimize implementation for ARM or RISC-V architectures. Note that reference implementation from https://github.com/srijs/hwsl2-core deliberately implements only AVX* optimisations, so we must craft ARM/RISC-V code ourselves.

The first step is to optimize GF127 code (with our modulo) in isolation.
Comparing assembly output for pure Go and C version might be helpful.

Some links to study:
https://www.ssrc.ucsc.edu/Papers/greenan-mascots08.pdf

RISC-V has crypto-extensions as well, some of them might be useful:
https://riscv.org/wp-content/uploads/2017/12/Wed-1354-RISCV-CryptoExtensions-RichardNewell.pdf

@roman-khimov roman-khimov added enhancement Improving existing functionality U4 Nothing urgent S4 Routine I2 Regular impact performance More of something per second labels Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality I2 Regular impact performance More of something per second S4 Routine U4 Nothing urgent
Projects
None yet
Development

No branches or pull requests

3 participants