-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Some performance improvements in the manifolds code #33110
Comments
comment:2
Thanks for this ticket! I've added it to the metaticket #30525 (fill free to do it yourself for a next ticket related to manifolds) and will take a look in the coming days. |
comment:5
This is very nice! Thanks a lot! I've just performed some minor tweaks (PEP 8 + adding you to AUTHOR fields) and pushed them in the above commit. Waiting for the patchbot green light for positive review. |
Reviewer: Eric Gourgoulhon |
comment:7
On the other side, I've noticed a tremendous speed-up in the vector field plots, due to the treatment of expressions with a single term in simplifying functions. This is very welcome, until vector field plots are improved by using fast callable expressions (this will require a full rewriting of |
comment:8
Replying to @egourgoulhon:
I find a small speedup (about 3%) for the Kerr metric in the single-threaded case. The multi-threaded case is a little bit slower for me, but that is most certainly because some of the cores are inactive for a little longer due to the naive way that sage distributes the computation across multiple cores. One should really measure CPU usage instead of total time spent. But in general my changes reduce the number of components that have to be calculated using contractions of the connection from n2(n-1)/2 to n(n2-1)/3 which in the best case for large n could be up to 33% faster. Of course, if the computation time is dominated by the final simplification step after the contraction (or subtraction when using the Bianchi-identity) has been performed, then there won't be much of a speedup. I suspect that this is the case in your examples which have quite complicated Riemann tensors. |
comment:9
Replying to @spaghettisalat: Thanks for your answer.
Yes. Most probably, in the case I've considered the computation time is dominated by the |
comment:10
Replying to @egourgoulhon:
Well after 2 weeks, the patchbot has not shown up... I am setting the ticket to positive review without waiting any further, since all doctests are passed on my computer and the doc builds (both html and pdf). |
comment:11
The ticket branch has not been merged in Sage 9.6.beta1. Maybe it is missing some patchbot green light. So I'm setting the status back to "needs_review" in order to catch the patchbot's attention. |
comment:12
There is some order that the tickets get merged in, but I don't quite understand what that is. |
Changed branch from public/manifolds-performance-improvements to |
Changes include:
Component: manifolds
Author: Marius Gerbershagen
Branch/Commit:
59691a8
Reviewer: Eric Gourgoulhon
Issue created by migration from https://trac.sagemath.org/ticket/33110
The text was updated successfully, but these errors were encountered: