How Can a Developer Intentionally Disable the Overflow Checks in Solidity 0.8.0?

A developer can intentionally disable the automatic overflow and underflow checks in Solidity 0.8.0 and later by enclosing the arithmetic operation within an unchecked block. This is done to save gas in situations where the developer is absolutely certain that the operation cannot overflow or underflow, such as incrementing a loop counter that is guaranteed to stay within a small range.

It is a trade-off: reduced gas cost for manual security assurance.

Can SafeMath Prevent All Logic Errors Related to Arithmetic?
What Is the Safe Math Library and Why Is It Used?
Can an Attacker Cause Both an Overflow and an Underflow in a Single Transaction?
What Is the Performance Impact of the Compiler’s Built-in Checks?
How Does the Signed Integer Type Change the Definition of Overflow/underflow?
What Is the Difference between Gas Limit and Gas Price?
How Does the “Gas Price” Differ from the “Gas Limit” in Ethereum?
What Is the Performance Impact of Using a Safe Math Library?

Glossar