Skip to content

How to turn off bound checks in Agrona to maximize UnsafeBuffer performance


Your system is extremely demanding in terms of performance, and you're willing to risk JVM core dumps or other process failures to get the absolute maximum performance out of UnsafeBuffer.


Set the environment property agrona.disable.bounds.checks to true.


Setting this to true will remove all bounds checking from calls in UnsafeBuffer.

See Also