News for hackers. Stuff that matters.
Re:How Many Type Parameters Can a Java Method Have? by lokedhs on Monday April 29, 2019 @12:06PM (#19779613)
It may be a performance hack. Varargs results in an array being allocated. I've seen this trick in the past, but they usually stopped at a handful of arguments and let the rest be handled by varargs.
Re:How Many Type Parameters Can a Java Method Have? by usrusr on Monday April 29, 2019 @07:32PM (#19783638)
Groovy is chock-full of absurd little microoptimizations that will forever fail to make even the tiniest dent in the general overhead relative to java. For several years there was even an "assume equality of hashes match" shortcut hidden in certain set operation code paths.
Re:How Many Type Parameters Can a Java Method Have? by zmmmmm on Tuesday April 30, 2019 @12:16AM (#19785125)
When compiled statically groovy has almost zero overhead relative to Java. I appreciate how much effort they have made to keep the overhead low and reduce the bloat as much as they can.