Today (well, yesterday actually) I realized that e...
# compiler
a
Today (well, yesterday actually) I realized that every lambda and function reference is compiled (for the JVM) into a separate class, and this slows down app startup.
h
a
I’ll give it a try, but it sounds like it will be even slower at runtime, just with a smaller jar size.
z
it sounds like it will be even slower at runtime
citation needed?
a
Just a hunch. Hope it's wrong.
Ok, so the number of classes did go down significantly from ~1250 to ~750. Interestingly, this eliminates lambda classes, but method references are still compiled to a class. No noticeable change in startup performance, though.
a
Yes, sad that they decided to go with option C. I think once this is enabled by default (and non-experimental), there will be much more pressure to apply it to function references too.