]> granicus.if.org Git - python/commit
Speed up _decimal by another 10-15% by caching the thread local context
authorStefan Krah <skrah@bytereef.org>
Sun, 24 Jun 2012 10:20:03 +0000 (12:20 +0200)
committerStefan Krah <skrah@bytereef.org>
Sun, 24 Jun 2012 10:20:03 +0000 (12:20 +0200)
commit78f075636cb222c9760a2e3a1235f976714d4c38
tree1b29bc7058ce07ea4fff3d31ebd445a4b250c2f1
parent95aeae01e29de49bf0d47b2442bc656cfe0e2ee1
Speed up _decimal by another 10-15% by caching the thread local context
that was last accessed. In the pi benchmark (64-bit platform, prec=9),
_decimal is now only 1.5x slower than float.
Misc/NEWS
Modules/_decimal/_decimal.c