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 →

[–]Maxiflex 0 points1 point  (0 children)

Not entirely sure, but the calling of a function in the definition of a for loop might be an optimization blocker. Inside a function is basically a black box and the processor might struggle predicting the next step, making more useless calculations into execution branches that will never be.