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
polynomial_template should avoid unnecessary coercions #7526
Comments
Attachment: trac_7256-polynomial_template_coercion.patch.gz based on 4.3.alpha0 |
comment:1
I'm not totally sure of how this should be done as I don't know the details of coercions, neither the details of the polynomial templating used. At least, my patch doesn't break any doctest for me. It touch for methods, the ones using coerce. It test for parent equality before applying coercion. I also introduce a variable
for readability. |
comment:2
The patch looks good and applies & doctests cleanly for me. However, we can do a little better. On my machine I get the following: Before
Patch
With my incremental reviewer patch I get:
So, this is a positive review if someone reviews my reviewer patch. |
comment:4
Attachment: trac_7256-polynomial_template_coercion_faster.patch.gz Woops, fixed. |
comment:5
Great thanks. Still applies fine and doctests ok. |
Reviewer: Martin Albrecht |
Merged: sage-4.3.alpha1 |
Author: Yann Laigle-Chapuy |
e.g. in
__mod__
, we should coerce other only if needed.This gives great speed up, e.g:
Component: performance
Author: Yann Laigle-Chapuy
Reviewer: Martin Albrecht
Merged: sage-4.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/7526
The text was updated successfully, but these errors were encountered: