Brandt Bucher <brandtbuc...@gmail.com> added the comment:
The attached PR doesn't seem to have any impact on Decimal performance (non-optimized, non-debug build on a fairly quiet laptop): main: Convert 262,000 Decimals to "small" ints: 31.7 ms +- 5.3 ms Convert 256,000 Decimals to 1-digit ints: 29.9 ms +- 3.1 ms Convert 256,000 Decimals to 2-digit ints: 30.4 ms +- 2.8 ms Convert 256,000 Decimals to 3-digit ints: 31.2 ms +- 3.1 ms patched: Convert 262,000 Decimals to "small" ints: 30.9 ms +- 4.0 ms Convert 256,000 Decimals to 1-digit ints: 29.5 ms +- 3.0 ms Convert 256,000 Decimals to 1-digit ints: 30.5 ms +- 2.5 ms Convert 256,000 Decimals to 1-digit ints: 31.0 ms +- 2.3 ms ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46361> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com