Skip to content

k256: w-NAF linear combinations#1816

Merged
tarcieri merged 1 commit into
masterfrom
k256/wnaf-linear-combinations
Jun 18, 2026
Merged

k256: w-NAF linear combinations#1816
tarcieri merged 1 commit into
masterfrom
k256/wnaf-linear-combinations

Conversation

@tarcieri

@tarcieri tarcieri commented Jun 18, 2026

Copy link
Copy Markdown
Member

Wires up WnafBase::multiscalar_mul as the backend for LinearCombination::lincomb_vartime when the alloc feature is enabled.

Provides a ~16% speedup for the 2-term case.

high-level operations/lincomb_vartime (2-term)
    time:   [29.102 µs 29.277 µs 29.465 µs]
    change: [−16.175% −15.781% −15.426%] (p = 0.00 < 0.05)
    Performance has improved.

@tarcieri tarcieri force-pushed the k256/wnaf-linear-combinations branch from 237648a to ee91076 Compare June 18, 2026 04:27
Wires up `WnafBase::multiscalar_mul` as the backend for
`LinearCombination::lincomb_vartime` when the `alloc` feature is
enabled.

Provides a ~16% speedup for the 2-term case.

high-level operations/lincomb_vartime (2-term)
    time:   [29.102 µs 29.277 µs 29.465 µs]
    change: [−16.175% −15.781% −15.426%] (p = 0.00 < 0.05)
    Performance has improved.
@tarcieri tarcieri force-pushed the k256/wnaf-linear-combinations branch from ee91076 to 8c5e37c Compare June 18, 2026 04:28
@tarcieri tarcieri merged commit 8a66de8 into master Jun 18, 2026
18 checks passed
@tarcieri tarcieri deleted the k256/wnaf-linear-combinations branch June 18, 2026 04:34
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