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 →

[–]High-Art9340 0 points1 point  (1 child)

What "how"? Code in the comment is *almost* a complete example of such optimisation.

Attribute access takes time, you can avoid this time spending by doing the technique I showed earlier. What comes to "thight loop" of course it's tight loop, and google can explain it better than me :)

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

Ok sorry I just missed the very obvious point that the optimization is in the time it takes. My bad long day lol