This makes all cache retrievals faster, eg:

before
In [1]: %timeit Pow(y, 2)
100000 loops, best of 3: 9.8 us per loop

after
In [1]: %timeit Pow(y, 2)
100000 loops, best of 3: 7.5 us per loop

You can merge this Pull Request by running:

  git pull https://github.com/rlamy/sympy caching

Or you can view, comment on it, or merge it online at:

  https://github.com/sympy/sympy/pull/1436

-- Commit Summary --

* Speed up cache decorator

-- File Changes --

M sympy/core/cache.py (11)

-- Patch Links --

  https://github.com/sympy/sympy/pull/1436.patch
  https://github.com/sympy/sympy/pull/1436.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/sympy/sympy/pull/1436

-- 
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to