https://kotlinlang.org logo
#announcements
Title
# announcements
z

ziggy42

11/04/2017, 3:08 PM
Inner classes are more expensive, I guess
k

kristofdho

11/04/2017, 3:21 PM
I've read an article which ran some benchmarks and concluded kotlin lambdas are faster than java lambdas though
z

ziggy42

11/04/2017, 3:22 PM
Do you have a link?
z

ziggy42

11/04/2017, 3:26 PM
Interesting. The cost of the additional class is removed when a singleton instance can be used
r

rcgonzalezf

11/05/2017, 2:18 AM
@Tatskaari There are more implications to it, and Java8 sometimes it doesn’t fallback to use invokeDynamic. Brian Goetz explains why the took those decisions here:

https://www.youtube.com/watch?v=2y5Pv4yN0b0

z

ziggy42

11/05/2017, 10:28 AM
Thank you
t

Tatskaari

11/05/2017, 3:17 PM
@rcgonzalezf Thanks, I will read through that. I should mention that I've implemented ahead of time class generation without issue.
👍 1
3 Views