7 ms·
>Just look at the performance costs of bounds-checking array access in C++ code. If your compiler can prove you dont need bounds-checking it will remove the ch
by glacia01 4y ago
>Just look at the performance costs of bounds-checking array access in C++ code.
If your compiler can prove you dont need bounds-checking it will remove the check and the performance would be the same. Hence, if your program has been proven to have no runtime errors you dont need them.
- jcelerier 4y ago> If your compiler can prove you dont need bounds-checking it will remove the check and the performance would be the same and in practice that is a very big "if"