Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Consider the following:
@groovy.transform.CompileStatic int cmp(int a, int b) { a <=> b }
"a <=> b" for primitive types is not optimized to make use of Integer#compare or similar – instead it is transformed into ScriptBytecodeAdapter.compareTo(a,b)