sympy/sympy — pull request #1436 by rlamy (2012-07-21 16:54:08+00:00)
Title: Speed up cache decorator

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