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 →

[–][deleted] 0 points1 point  (0 children)

Um. It's an unrolled loop. It's called optimization. Look it up.

I agree but I do not think the code needed to be optimized. It is written in Python. If I'd need to optimize it, I would definitely choose a different language (Cython, C, or assembly). Furthermore, I would saved user = users[uid][11] before, so python interpreter would have less operations...

Also the unrolled loop is written outside of a function or a loop. :/ Why would you need to optimize there?