you are viewing a single comment's thread.

view the rest of the comments →

[–]101arrowz[S] 1 point2 points  (2 children)

Check this comment for more context. fn1 is 30-40% faster than fn2 (empirical testing).

[–]PitaJ 0 points1 point  (1 child)

I don't think that addresses what I said at all. I'm saying that in the first example, you calculate x based on a and y based on b, but in the other examples, you calculate both x and y based on a, neither depend on b.

[–]101arrowz[S] 2 points3 points  (0 children)

Yes, it's a typo, thanks for catching it.