https://kotlinlang.org logo
#getting-started
Title
# getting-started
m

Monroe Walker

07/05/2022, 10:16 PM
Hey! I asked this on the forum already: https://discuss.kotlinlang.org/t/compilekotlin-execution-time-seems-to-randomly-vary-within-2-10-second-range/25154/2 but am also asking here in case people check this more often - my compileKotlin step of my gradle build varies in execution time within a window of about 2-10 seconds. I'm trying to figure out why it takes longer when it does but I'm not sure what to look into. Any advice?
s

Starr

07/05/2022, 10:23 PM
likely incremental/lazy compilation -- it reuses the output of previous compilations if the file wasn't changed
m

Monroe Walker

07/05/2022, 10:28 PM
But I'm only ever changing a single string in a single file and still seeing the variation in compilation time
And this is also happening if I just keep attempting the recompilation back to back. Change the file, recompile, check the execution time, repeat.. It'll be 1.9 second one time, 7 seconds another, 3 seconds another..
2 Views