Hacker News new | ask | show | jobs
by TheLoneWolfling 4274 days ago
Any half-decent optimizing compiler will turn those two implementations into the exact same assembly.

That being said, that looks like Python source code - and as the default Python interpreter doesn't do much in the way of optimization, you are correct in that case. (Although I wonder about PyPy.)