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
Performance of casting ZZ[x] to Qp[x] #15426
Comments
Eliminate unnecessary function calls |
comment:1
Attachment: PadicPolyCastingInt.patch.gz |
Commit: |
Branch: u/chapoton/15426 |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:6
Moving tickets from the Sage 8.8 milestone that have been actively worked on in the last six months to the next release milestone (optimistically). |
comment:8
Ticket retargeted after milestone closed |
comment:9
Batch modifying tickets that will likely not be ready for 9.1, based on a review of the ticket title, branch/review status, and last modification date. |
comment:11
Setting new milestone based on a cursory review of ticket status, priority, and last modification date. |
comment:12
Setting a new milestone for this ticket based on a cursory review. |
New commits:
|
Changed branch from u/chapoton/15426 to public/ticket/15426 |
comment:16
bot is morally green, so please review ! |
comment:17
It's not completely clear to me what really changed but it looks okay. |
Reviewer: Xavier Caruso |
Changed branch from public/ticket/15426 to |
One probably expects that casting ZZ[x] to Qp[x] is at least as fast as casting QQ[x] to Q[x].
This appeared not to be the case:
This appears to have been caused by unneccisary repeat virtual function calls in polynomial_padic_capped_relative_dense::_comp_valaddeds. The number of excess calls was proportional to the degree of the polynomial, hence this likely does not cause noticeable performance issue for very low degree polynomials.
The attached patch should correct this, I have new timings
CC: @roed314 @xcaruso
Component: performance
Keywords: performance padic polynomial casting
Author: Andrew Fiori
Branch/Commit:
a297e3c
Reviewer: Xavier Caruso
Issue created by migration from https://trac.sagemath.org/ticket/15426
The text was updated successfully, but these errors were encountered: