|
|
|
|
|
by iscoelho
888 days ago
|
|
As the parent comment said: bounds checks. Unsafe is an order of magnitude faster for performance sensitive tasks due to only that. Quick publication showing the difference (up to 125%!):
https://www2.cs.arizona.edu/~dkl/Publications/Papers/ics.pdf (and no, the story hasn't changed an awful lot since 2004. The gap still exists.) |
|
Perhaps the paper answers my question, but I'll admit I'm being lazy here and would much appreciate a tl;dr.