Serhiy Storchaka added the comment: It is easy to extend fastint_alt.patch to support floats too. Here is new patch.
> It's instructive to run ./python Modules/_decimal/tests/bench.py (Hit Ctrl-C > after the first cdecimal result, 5 repetitions or so). Note that this benchmark is not very stable. I ran it few times and the difference betweens runs was about 20%. ---------- Added file: http://bugs.python.org/file41807/fastintfloat_alt.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21955> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com