A peek past lambda
Rémi Forax
forax at univ-mlv.fr
Mon Aug 22 11:40:21 PDT 2011
On 08/22/2011 06:34 AM, Llewellyn Falco wrote:
> So if the JIT is already able to optimize the method so well, why
> wouldn't you want to create the anonymous classes? It seems like that
> would enable the lambdas to automatically fit into the existing
> optimizations.
>
>
> llewellyn
It's not that simple.
A lambda is stored in a local variable so potentially
each call to a method that takes a lambda as parameter
can execute a different code.
Again, see
http://www.azulsystems.com/blog/cliff/2011-04-04-fixing-the-inlining-problem
Rémi
More information about the lambda-dev
mailing list