How to turn off bound checks in Agrona to maximize UnsafeBuffer performance¶
Problem¶
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
.
Solution¶
Set the environment property agrona.disable.bounds.checks
to true.
Discussion¶
Setting this to true will remove all bounds checking from calls in UnsafeBuffer
.