Hi everyone, I am reposting here what is already i...
# ksp
h
Hi everyone, I am reposting here what is already in ksp github page readme as of today:
Copy code
Deprecation notice for KSP1
KSP1 is deprecated and support will be removed. We are focusing our development efforts on KSP2 to provide better performance, improved APIs, and a more robust architecture for the future.

Compatibility Limitations
Please be aware that KSP1 will not be updated to support upcoming major versions of the Android and Kotlin toolchains. Specifically, KSP1 will not be compatible with:

Kotlin version 2.3.0 and higher.
Android Gradle Plugin (AGP) version 9.0 and higher.
Projects using KSP1 may not behave correctly (or fail the build) if you upgrade to these or any subsequent versions of AGP or Kotlin.

To ensure your annotation processors continue to function correctly and to take advantage of future tooling advancements, it is crucial to migrate your projects to use KSP2 (which has been the default since beginning of 2025)
Support for KSP1 is expected to be removed by end of 2025 (possibly even earlier) If there are any bugs in KSP2 that are total blockers for the migration to it, please let us know
👍 1
e
The main reason we have held off on migrating is due to performance concerns. I have been following this from issues like these: https://github.com/google/ksp/issues/2282 https://github.com/google/dagger/issues/2349#issuecomment-2329852274 https://github.com/google/dagger/issues/4855 I know a lot of work was already done on performance and it sounds like there have been improvements, but these issues are still open without a clear sense of current status. It would be great to understand a few things: • current understanding of performance difference between KSP 1 and 2 • any ongoing or planned work on KSP 2 performance that we should wait for
g
Looks that dagger always will be slow on KSP, not much of progress there
We didn't see much of a difference v1 vs v2, both of them are way slower than KAPT for Dagger
h
@Ting-Yuan Huang Do you know if there are any performance improvement related items in the pipeline for KSP2?
z
I sent over a specific performance bottleneck I found in KSP2 and dagger when there are a lot (thousands) of modules but not sure if anything had come of that yet
r
We are migrating our project to kotlin 2.2.0 nad had to disabled the ksp2 mode because epoxy doesn't support it. I understand the reasoning here, but would be nice to have the support for ksp2 symbols.