-
Notifications
You must be signed in to change notification settings - Fork 123
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
Cache canonical_matrix(::MonomialOrdering)
#2499
Cache canonical_matrix(::MonomialOrdering)
#2499
Conversation
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.
I'd suggest not to go via attributes. This just entails another dictionary lookup and this is data structure is very low-level, i.e. it is called with high frequency.
And as @fieker said: Avoiding the lookup of a groebner basis in the first place is also possible and should be quicker. But thanks for the very quick and constructive response! |
This just hides over the actual problem, which is that |
Lest I be misunderstood: I still think this PR is useful and I am fine with merging it, but I removed the |
I am glad for anything that helps my computations to actually terminate. |
cfed019
to
f5cb257
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2499 +/- ##
==========================================
- Coverage 72.93% 72.93% -0.01%
==========================================
Files 406 406
Lines 53901 53904 +3
==========================================
+ Hits 39314 39315 +1
- Misses 14587 14589 +2
|
Implements the proposal of #2498 (comment).
The speed change is shown in #2498 (comment).
Feel free to close this and propose an alternative to this @HechtiDerLachs.