Could someone tell me how to get traction on <http...
# ksp
o
Could someone tell me how to get traction on https://github.com/google/ksp/issues/1385 ? This bug affects most bazel + rules_kotlin users and introduces a bad performance bottleneck. Thanks in advance.
cc @Ting-Yuan Huang as it seems you wrote the code that is suspected to cause this.
t
Have you tried KSP2? which should be thread safe.
o
No we haven't. It's not trivial to add support yet for it + update our processors. Any chance the fix can be backported to ksp1 ? Or if we know what's happening, feel free to provide guidance and I can try to fix it.
t
The main issue with KSP1 is that the implementation used class static variables to. There are a few solutions:
Let's move the discussion to github, so that it can be searched and easier to be shared. https://github.com/google/ksp/issues/1385#issuecomment-2842937534
For Bazel, I'd recommend trying the 3rd approach.
o
Thanks @Ting-Yuan Huang. Option #3 would indeed remove some benefits from using bazel persisitent workers 😞
But maybe we can try and see the perf impact.