bookmark

performance - Java lambdas 20 times slower than anonymous classes - Stack Overflow


Description

when the application hasn’t used lambda expressions before, even the framework for generating the lambda classes has to be loaded (Oracle’s current implementation uses ASM under the hood). This is the actual cause of the slowdown, loading and initialization of a dozen internally used classes, not the lambda expression itself.

Preview

Tags

Users

  • @jil

Comments and Reviews