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

opt(ecc): jacobian doubling improvement #510

Merged
merged 1 commit into from
Jan 8, 2025
Merged

opt(ecc): jacobian doubling improvement #510

merged 1 commit into from
Jan 8, 2025

Conversation

mratsim
Copy link
Owner

@mratsim mratsim commented Jan 8, 2025

Bench on a Mac M4 Max (no assembly)

bench_ctt_ecc_double

This avoids many additions and includes multiplication by 8 by halving one intermediate computation (that then are squared twice so the 1/2 becomes 1/8 and cancel the factor 8).

Improvement is 5 to 8%, including on G2 where squaring a much cheaper than multiplication.

@mratsim mratsim merged commit 7377a7e into master Jan 8, 2025
12 checks passed
@mratsim mratsim deleted the ecc-dbl branch January 8, 2025 14:20
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.

1 participant