]> granicus.if.org Git - python/commit
SF patch #1020845: Decimal performance enhancements
authorRaymond Hettinger <python@rcn.com>
Sun, 19 Sep 2004 01:54:09 +0000 (01:54 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 19 Sep 2004 01:54:09 +0000 (01:54 +0000)
commit636a6b100fe6083388bc5315758326078abe65b4
tree3c862815b3865e1b4b18729cbe8c4e84e7a0e8fe
parent6cc1350807a64f609f6dd9559f9c94a2d208cd5f
SF patch #1020845: Decimal performance enhancements
(Contributed by Nick Coghlan.)

Various code cleanups and optimizations (saves about 40% on testsuite
execution time and on the telco benchmark).

* caches results of various operations on self (esp. checks for being
  a special value).

* _WorkRep now uses ints and longs for intermediate computations.
Lib/decimal.py