4 ms·
Avoid directly indexing if possible. Use the collection functions and slices instead.
by wredue 3y ago
Avoid directly indexing if possible. Use the collection functions and slices instead.
- epage 3y agoI'd add careful use of inlining so the compiler can see both the bounds check and the index to know the bounds check can be removed.
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]