we must not cache anything for surfaces that are mutable. However, once a surface becomes immutable, we enable caching which is as fast as SageMath's native cached method.
We checked with %timeit that this approach does the trick.
Checklist
[x] Added an entry in doc/news/.
[x] Added a test for this change.
[x] Added new .py files to the documentation in doc/geometry or doc/graphical.
we must not cache anything for surfaces that are mutable. However, once a surface becomes immutable, we enable caching which is as fast as SageMath's native cached method.
We checked with %timeit that this approach does the trick.
Checklist
doc/news/
.doc/geometry
ordoc/graphical
.