]> granicus.if.org Git - python/commit
Major change in the internal structure of the Decimal
authorFacundo Batista <facundobatista@gmail.com>
Fri, 23 Nov 2007 17:59:00 +0000 (17:59 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Fri, 23 Nov 2007 17:59:00 +0000 (17:59 +0000)
commit72bc54faed8f12dc89ecc989fc7921002db3427f
treeb10506e32c2a5a4de92fc230aeab3f40206cce7c
parent90b5bc3a7d098f12961e7debe7a5321b86a122c5
Major change in the internal structure of the Decimal
number: now it does not store the mantissa as a tuple
of numbers, but as a string.

This avoids a lot of conversions, and achieves a
speedup of 40%. The API remains intact.

Thanks Mark Dickinson.
Lib/decimal.py
Lib/test/test_decimal.py