Lambda vs anonymous inner class performance: reducing the load on the ClassLoader?

后端 未结 2 1030
遇见更好的自我
遇见更好的自我 2020-12-10 15:49

I would like to know how big of a benefit lambdas have in Java 8. I agree that it might be more readable sometimes to use lambdas, but does it have really such of a big impa

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 16:31

    Oracle has a presentation covering some of the performance differences. It appears that there are quite a few factors that impact performance of lambdas vs. anonymous classes.

    http://www.oracle.com/technetwork/java/jvmls2013kuksen-2014088.pdf

提交回复
热议问题