[Go] Force a single, early bounds check on read and write paths.
As an example, GetInt64 used to perform 8 bounds checks, one for each slice access. By performing a bound check on the highest index, the number of checks is reduced to one through bounds-check-elimination.
Showing
Please
register
or
sign in
to comment