inducer / pymbolic

A simple package to do symbolic math (focus on code gen and DSLs)
http://mathema.tician.de/software/pymbolic
Other
106 stars 25 forks source link

Optimizations for DerivativeBinder #72

Closed alexfikl closed 2 years ago

alexfikl commented 2 years ago

The commits should be fairly self-contained. The changes are

The only change that had a visible effect (i.e > 1s) was the second one. The main culprit was the hashing and equality comparisons for the various caches and that helped hit the self is other case more often and avoid the expensive checks.

inducer commented 2 years ago

LGTM, thanks!