10 ms·
Maybe it was the size of the list. Have you tried xrange?
by emmelaich 5y ago
Maybe it was the size of the list.
Have you tried xrange?
- nextlevelwizard 5y agoNo and I won’t. There is no reason why the compiled code shouldn’t optimize both loops away since they do nothing. And in any case it should at least be faster if it doesn’t optimize the code away. And I am fairly sure xrange() is not in Python3