homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients loewis, mark.dickinson, pitrou, skrah
Date 2012年04月09日.16:54:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20120409165437.GA11934@sleipnir.bytereef.org>
In-reply-to <1333988067.75.0.775317539337.issue14520@psf.upfronthosting.co.za>
Content
Mark Dickinson <report@bugs.python.org> wrote:
> In the C version of decimal, do distinct Decimal objects ever share coefficients?
The coefficients are members of the mpd_t struct (libmpdec data type),
and they are not exposed as Python objects or shared.
Cache locality is incredibly important: I have a patch that reserves
a static coefficient of four words inside the PyDecObject. This patch
speeds up _decimal by roughly another 30-40% for regularly sized decimals.
If the decimal grows beyond that, libmpdec automatically switches to
a dynamically allocated coefficient.
I think sharing would probably slow things down a bit.
History
Date User Action Args
2012年04月09日 16:54:38skrahsetrecipients: + skrah, loewis, mark.dickinson, pitrou
2012年04月09日 16:54:38skrahlinkissue14520 messages
2012年04月09日 16:54:38skrahcreate

AltStyle によって変換されたページ (->オリジナル) /