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
Speed improvements in affine crystals and fix of optional doctest failure #14089
Comments
comment:2
Attachment: trac_14089-crystal-speed-up-as.patch.gz |
comment:3
Does this also speed up the type Also, for the Thanks, Travis |
comment:4
Replying to @tscrim:
Yes, they should all be faster now. Before the patch
After the patch
I can cache index_set, which should make it faster. Best, Anne |
comment:5
In fact, this breaks some doc tests since caching an object that is not immutable is dangerous. Unless there is really a significant speedup, I won't make this change for now. Anne |
comment:6
Sorry, I wasn't specific enough. I meant their creation. I did some tests now that I have the patch (I wrote that comment last night before you had posted the patch). Before patch:
After patch:
So it does help, but they still take a long time to initialize compared to their counterparts. However this can be an issue for another ticket. As for the caching of the
which would have to be tweaked to
but IDK if this behavior occurs anywhere else. Thanks, Travis |
comment:7
Unless you have a specific suggestion on how to improve this, I would leave it for another ticket.
Yes, this also occurs in tensor_product in /combinat/crystals Anne |
comment:8
Or just: |
comment:9
Replying to @anneschilling:
Not at present. Replying to @nthiery:
Yes, that does seem safer. Best, Travis |
comment:10
Looks good to me as well. |
Changed reviewer from Nicolas M. Thiery to Nicolas M. Thiery, Travis Scrimshaw |
comment:11
Replying to @tscrim:
Thank you! Anne |
Changed keywords from crystals to crystals, days45 |
Merged: sage-5.8.beta0 |
This patch caches all methods in KirillovReshetikhin crystals that compute crystal morphisms. This yields a significant speed-up of all methods involving the affine crystal operators.
With the patch applied:
Without the patch applied:
It also fixes a doctest failure in /category/crystals.py
Depends on #14052
CC: @sagetrac-sage-combinat @nthiery @tscrim
Component: combinatorics
Keywords: crystals, days45
Author: Anne Schilling
Reviewer: Nicolas M. Thiery, Travis Scrimshaw
Merged: sage-5.8.beta0
Issue created by migration from https://trac.sagemath.org/ticket/14089
The text was updated successfully, but these errors were encountered: