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

internal/sm2ec: improve purego implementation's performance #274

Closed
4 tasks done
emmansun opened this issue Nov 21, 2024 · 2 comments
Closed
4 tasks done

internal/sm2ec: improve purego implementation's performance #274

emmansun opened this issue Nov 21, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request sync sdk

Comments

@emmansun
Copy link
Owner

emmansun commented Nov 21, 2024

  • put elements directly in point struct in purego.
  • use mixed addition in purego ScalarBaseMult.
  • use Booth multiplication in purego ScalarMult/ScalarBaseMult.
  • use precomputed generators in purego。
@emmansun
Copy link
Owner Author

emmansun commented Nov 21, 2024

使纯Go实现和汇编实现相似,目前其点标量乘法的性能大概是不到汇编实现的1/2。由于本软件没有FIPS的要求,所以依然使用//go:embed

@emmansun
Copy link
Owner Author

v0.29.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sync sdk
Projects
None yet
Development

No branches or pull requests

1 participant