-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
In our Android project with dagger+hilt the kspDebugKotlin task of the biggest module in our project is taking almost 2x the time on KSP2 than on KSP1. Checked with dagger 2.57, Kotlin 2.2.0, KSP 2.2.0-2.0.2. It feels like there already was performance regression when switching from KAPT to KSP, and with KSP2 it got incredibly bad.
I don't have a proof that this is purely a dagger ksp processor issue but there is a big chance it is. We know that in general dagger is the most time consuming ksp processor in our project. Now Kotlin 1.9 is deprecated so I assume in one of the future Kotlin releases it will be removed and we will be forced to use KSP2. What is the dagger team take on that? Is there any ongoing effort to make it more efficient? Is there any roadmap to follow?
I can run some benchmarks or get some more detailed numbers, but don't really know how to measure time spent in each KSP processor.