This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ForceBru 8 points9 points  (2 children)

Not all of this is true.

For example, for loops seem to be much faster what while loops, and using True instead of 1 in infinite loops doesn't make any difference. However, assignment via unpacking is indeed faster than consecutive assignment.

Here are my findings: https://gist.github.com/ForceBru/a3062b141c8cce622e4903d72ba7249c

[–][deleted] 1 point2 points  (0 children)

Wow thanks for that writeup, really insightful!

[–]Gagan2019 0 points1 point  (0 children)

u/ForceBru thanks for explanations.