[issue35196] IDLE text squeezer is too aggressive and is slow
Tal Einat
report at bugs.python.org
Fri Nov 9 16:09:08 EST 2018
Tal Einat <taleinat at gmail.com> added the comment:
> On my machine, 2.7.15 (without squeezing) and 3.7.1 (with squeezing) IDLE results (average seconds).
>
> from timeit import timeit
> timeit("print('nnn '*500)", number=10) # Exp1: .0357, .0355
> timeit("for i in range(500): print(i)", number=4) # Exp2: 1.45, 1.70
> timeit("print(*range(500))", number=4) # Exp3: about 5*, 4.85
Comparing 3.7.0 to current master, I'm seeing about a 4% slowdown on the second experiment. That's significant, but probably not what Raymond or Serhiy are worried about. Regardless, I've nearly got a PR with an optimization ready.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35196>
_______________________________________
More information about the Python-bugs-list
mailing list