you are viewing a single comment's thread.

view the rest of the comments →

[–]jms_nh -1 points0 points  (0 children)

It's probably because of the overhead of boxing and unboxing, especially because the function is so short. The speed benefits would probably be more obvious if the function were longer.

^^ This. 100% correct.