Is K2 expected to be much faster to compile scripts? I tried upgrading my scripting host, but it honestly didn't seem to make much difference. Or maybe K2 isn't being used automatically in that case.
e
Eugen Martynov
04/23/2024, 7:04 PM
How did you measure it?
m
mikehearn
04/24/2024, 11:23 AM
Well, it was advertised as a 2x win so I just watched to see how long it takes. But as was pointed out to me on a YT ticket, actually script compilation is dominated by "not compiling" stuff but rather things like classpath scanning, so k2 is not expected to make a different there.
e
Eugen Martynov
04/24/2024, 11:41 AM
Yeah, sorry, I should give a better context. From my experience, the Java start is taking most of the time. So my question came - how do you measure k2 compilation impact.
m
mikehearn
04/24/2024, 1:11 PM
Ah I see. My host has a progress tracker that spins whilst compilation is happening and shows an animated a ticker time. So I look at that.