[issue14381] Intern certain integral floats for memory savings and performance
Serhiy Storchaka
report at bugs.python.org
Fri Mar 23 08:52:56 CET 2012
Serhiy Storchaka <storchaka at gmail.com> added the comment:
PyBench contains a lot of different tests and executes them not too long. Random fluctuations of a few percent are possible. We need a more stable realistic test working with floats.
$ ./python -m timeit 'x,y,d=1,0,0.01
for i in range(628):
x,y=x-d*y,y+d*x'
Without patch: 1000 loops, best of 3: 220 usec per loop
With patch: 1000 loops, best of 3: 232 usec per loop
Difference is 5%.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14381>
_______________________________________
More information about the Python-bugs-list
mailing list