Re:Python: Faster Way
by eveningcoffee on Tuesday December 30, 2014 @07:20AM
(#8814267)
I am wondering what is exactly measured here (by timeit). For example for test 5, there is noticeable difference between timings of variants b and c despite them evaluating to the same list of instructions (and I did tests by myself).
[ Parent
| on HN ]
The first has
12 COMPARE_OP 8 (is)
while the second has 12 COMPARE_OP 2 (==)
Re:Python: Faster Way
by eveningcoffee on Thursday January 01, 2015 @08:02PM
(#8825046)
You are right! I overlooked this. Thanks!