You call this optimized? The task is simple, post 2 code snippets that perform the same task, where one seems very optimized at first glance, but actually is significantly slower than the other.

Only one rule: 


Both snippets must finish with the exact same output (for the same given input, if any).
Python 3

Seems fast...

 print(0 &lt; 10**100 - 1 &lt; 10**100)


Seems slow...

 print(10**100 - 1 in range(0, 10**100))


But the two run in very similar times! range has an efficient implementation of in