`-Xno-param-assertions` does pretty much exactly w...
# announcements
s
-Xno-param-assertions
does pretty much exactly what you want. I don't know if the performance impact is really relevant though
p
It's a method called to render a graph, can be called up to 120 times per second.
s
I don't believe anything until you measure. JIT might remove the call anyway.
g
+1 looks as perfect case of premature optimization
Also you don't have this intrinsic check if your method is private (so cannot be called from java without reflections)