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.

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

Commit messages:
 - De-duplicate identical lambdas in FindOps

Changes: https://git.openjdk.org/jdk/pull/19477/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19477&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8333265
  Stats: 35 lines in 2 files changed: 17 ins; 7 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/19477.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19477/head:pull/19477

PR: https://git.openjdk.org/jdk/pull/19477

Reply via email to