Hacker News new | ask | show | jobs
by masklinn 1034 days ago
Yep, in python function calls are not cheap, you’re usually better off avoiding them in tight loops.

Plus here on each iteration `int` has to be loaded from the globals before it can be called.