On Thu, 30 May 2024 12:50:36 GMT, Claes Redestad <redes...@openjdk.org> wrote:

> Extracting duplicate method references to static field reduce proxy class 
> spinning and loading. In this case 2 less classes loaded when using 
> `findAny()` on each type of stream.

Vicente filed a bug on javac to investigate this: 
https://bugs.openjdk.org/browse/JDK-8333278

I wouldn't mind using condy for constant aka non-capturing lambdas. I recall we 
had a prototype for that years ago, but switching over was shelved for some 
reason.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19477#issuecomment-2139703977

Reply via email to