Efficient implementation of closures on JVM
Brian Goetz
brian.goetz at oracle.com
Thu Dec 1 06:29:44 PST 2011
Yes, see the talk from this year's JVM Language Summit entitled "From
Lambdas to Bytecodes".
On 12/1/2011 3:19 AM, Behrang Saeedzadeh wrote:
> Hi,
>
> A few days ago I was reading an article about how excessive usage of
> closures has hindered compilation time, performance, and memory usage of a
> Scala application that has forced replacing the usage of closures with
> alternative code that's not using closures. In short, looks like this is
> happening because for each closure, a new anonymous inner class and hence
> .class should be generated and loaded that lead to the aforementioned
> problems.
>
> I was wondering if the implementation of closures that's due to be added to
> Java 8 will have similar problems or if there are plans to make changes to
> the VM to make it possible implement closures in a more efficient way?
>
> Cheers,
> Behrang Saeedzadeh
> http://www.behrang.org
>
More information about the lambda-dev
mailing list