Closed willwheelera closed 2 months ago
generate_quadrature_grids seems kind of slow in some of my small tests. I don't see a reason to recompute it every call, so added @cache decorator
functools.cache was only introduced in python 3.9. I think we can just as well use lru_cache which supports more versions.
lru_cache
I've implemented this in a separate commit..
generate_quadrature_grids seems kind of slow in some of my small tests. I don't see a reason to recompute it every call, so added @cache decorator