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

Misc fixes #1108

Merged
merged 15 commits into from Jan 12, 2021
Merged

Misc fixes #1108

merged 15 commits into from Jan 12, 2021

Conversation

skirpichev
Copy link
Collaborator

No description provided.

Benchmark for
In [1]: R, x = ring('x', FF(3622009729038561437))
      : f = x**20 + x + 1
      : m = Monomial((2,))

Before:
In [4]: %timeit c = f.coeff(m)
9.41 µs ± 39.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

In [5]: %timeit c = f.coeff((2,))
8.82 µs ± 25.7 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

Now:
In [5]: %timeit c = f.coeff(m)
1.32 µs ± 5.49 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)

In [6]: %timeit c = f.coeff((2,))
1.36 µs ± 4.63 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each)
@skirpichev skirpichev marked this pull request as ready for review January 12, 2021 12:33
@skirpichev skirpichev merged commit ffe2db3 into diofant:master Jan 12, 2021
@skirpichev skirpichev deleted the misc branch January 12, 2021 12:41
@diofant diofant deleted a comment from github-actions bot Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

1 participant