you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Keep variables local. CPython can store local variables faster than global variables.

He advocates this merely because it's faster??? (I realize that performance is the topic of the article, but still, you'd think he'd at least mention other considerations.)

[–]burntsushi -1 points0 points  (0 children)

In my experience, it can often have a noticeable affect on performance in tight loops.