The most important is this slide showing that lambda is slow during warm up and as fast as anonymous classes after JIT optimizes the performance.
It does NOT mean we should avoid using lambdas. Because they have quite few proposals and ideas for performance improvements (if you want to know what, see the study) and mainly because lambas are different to anonymous inner classes. So, it just means we need to wait after JVM gets optimized. And who knows, maybe lambdas are going to be faster than anonymous inner classes.
No comments:
Post a Comment