Skip to content

fp12: improved cyclotomicSquare#25

Merged
gbotrel merged 1 commit intodevelopfrom
csquare
Jan 7, 2021
Merged

fp12: improved cyclotomicSquare#25
gbotrel merged 1 commit intodevelopfrom
csquare

Conversation

@gbotrel
Copy link
Copy Markdown
Collaborator

@gbotrel gbotrel commented Jan 7, 2021

see fq12.go tempalte --> removed one MulByNonResidueInv (cancelling with MulByNonResidue) and used E2 squaring (significantly faster than e2 mul) in fp4square .

on my machine:

benchmark              old ns/op     new ns/op     delta
BenchmarkPairing-8     903356        827455        -8.40%
BenchmarkPairing-8     907516        823723        -9.23%

Copy link
Copy Markdown
Collaborator

@yelhousni yelhousni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gbotrel gbotrel merged commit f3df6a5 into develop Jan 7, 2021
@gbotrel gbotrel deleted the csquare branch January 7, 2021 17:15
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.

2 participants