-
-
Notifications
You must be signed in to change notification settings - Fork 510
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
efficiency problem with polynomials (SymbolicRing vs PolynomialRing) #8158
Comments
comment:2
PolynomialRing is still slower with Sage 5.11, even with integer coefficients:
Paul |
comment:4
I doubt there is much to do here except reduce the overhead of the singular interface (especially regarding memory management) or singular itself. On my system, ginac (1.6.2) is already faster than singular (3.1.6):
Both interfaces have comparable overhead (sage 6.2.beta4):
but not for the same reason—the advantage of standalone singular over libsingular called from sage seems to be due in large part to its faster memory allocator, and we can make the singular version significantly faster by forcing sage to use tcmalloc instead of the system malloc():
|
comment:5
the speedup obtained with tcmalloc is impressive, could this be useful in other parts of Sage? Paul |
comment:7
Replying to @zimmermann6:
I guess so... But that's hard to tell without more profiling, and I don't really know what to test. See #15950. |
Consider the following example:
I thought it would be more efficient to use PolynomialRing(),
but it is not:
However if one wants to factor d, then PolynomialRing is faster
(SymbolicRing seems to loop forever):
Component: performance
Issue created by migration from https://trac.sagemath.org/ticket/8158
The text was updated successfully, but these errors were encountered: