https://github.com/groovy/groovy-core/blob/master/src/main/org/codehaus/groovy/runtime/ArrayUtil.java
>>55099968
C is the best
>>55099968
looks like an optimization desu
Hey at least it's automatically generated, there's some worst stuff in a similar vein to this in the Clojure compiler/runtime that's maintained by hand.
Isn't this where a competent dev would use currying?
>>55099992
If they had meta programming, none of that shit would be needed.
>>55099992
i was right :^)
>* The purpose is the reduction of the size of the bytecode.
>* The number of needed instructions is thus reduced from 15 to 4. For every entry we save 3 bytecode instructions.
* This allows better readable bytecode and it allows the JIT to see less bytecode to optimize, helping under the
* inlining threshold here or there.
* So even though the class is ugly, there are good reason to have this in Groovy, even if the class makes
>* absolutely no sense in normal Java. But it is not used in normal Java, but from the bytecode.
>>55100024
Obviously. That is why I condone this practice, please replicate.
Noice.
>>55100024
>using the smiley with a carat nose