Curious if enabling new type inference will improv...
# gradle
t
Curious if enabling new type inference will improve build speed. Do anyone measured/noticed that?
g
As I know it will make compilation slower (according to Uber measurements and what I heard from Google compiler guys)
And it's not really related to gradle
t
interesting, from https://blog.jetbrains.com/kotlin/2019/12/what-to-expect-in-kotlin-1-4-and-beyond/ :
for instance, if you’ve tried the new algorithm for type inference, that’s a part of the new compiler
and it was said that new compiler should drastically improve build time 🤔
e
IIUC, most of the speed improvements of the ‘new compiler’ won’t be part of the first 1.4
See the “Not in 1.4”
g
There are 2 parts of new compiler: backend and frontend Backend is close to be a part of 1.4 and new type inference also will be available with new backend New backend and new type interence will not make compilation faster, most probably opposite. New frontend is what can make it significantly faster, but it on early stage and will not be ready by 1.4 release
👍 2
t
need to run gradle-profiler with new inference enabled to see how it affects build time 🤔