-
-
Notifications
You must be signed in to change notification settings - Fork 653
Improve FiniteField_givaroElement #40713
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
base: develop
Are you sure you want to change the base?
Improve FiniteField_givaroElement #40713
Conversation
Documentation preview for this PR (built with commit 9c8b73e; changes) is ready! 🎉 |
c250f64
to
cb84476
Compare
cb84476
to
0a5d0b7
Compare
@@ -1411,35 +1433,25 @@ cdef class FiniteField_givaroElement(FinitePolyExtElement): | |||
- ``check`` -- boolean (default: ``False``): If set, | |||
test whether the given ``order`` is correct. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken, order
is unused in the new version, apart from checking: it nevers helps for performance or correctness, but may make it worse if provided with check=True
. I suppose there is a good reason against removing order
and check
(?), but maybe to avoid confusion for the user, the doc could indicate that providing order
will not speed up anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just for backwards compatibility, some existing code e.g. .log(self, a, b)
in elliptic curve point passes the order
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks.
Apart from the comment on |
The changes look good to me. Thanks |
General speedup, plus some minor clean-up.
The worst offenders are
log
andmultiplicative_order
which uses the generic algorithm.📝 Checklist
⌛ Dependencies