-
Notifications
You must be signed in to change notification settings - Fork 31
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
Is perfect_power()
too slow?
#443
Labels
performance
Affects speed/performance
Comments
This is particularly slow for a prime to a prime power. |
mhostetter
added a commit
that referenced
this issue
Dec 18, 2022
mhostetter
added a commit
that referenced
this issue
Dec 18, 2022
mhostetter
added a commit
that referenced
this issue
Dec 18, 2022
After #454, this runs as follows. There may still be an underlying bug in the In [1]: import galois
In [2]: %time galois.perfect_power(2**471)
CPU times: user 7 µs, sys: 14 µs, total: 21 µs
Wall time: 23.8 µs
Out[2]: (2, 471)
In [3]: %time galois.perfect_power(2**571)
CPU times: user 25 µs, sys: 0 ns, total: 25 µs
Wall time: 26.5 µs
Out[3]: (2, 571) |
mhostetter
added a commit
that referenced
this issue
Dec 18, 2022
mhostetter
added a commit
that referenced
this issue
Dec 18, 2022
mhostetter
added a commit
that referenced
this issue
Dec 19, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some inputs to
perfect_power()
take a very long time to return. Is this expected? Is there an inefficiency in the algorithm?The text was updated successfully, but these errors were encountered: