Will ksp be thread safe? Java annotation processin...
# ksp
e
Will ksp be thread safe? Java annotation processing is not thread safe, as the
complete
call that javac invokes on type symbols to fill in information about the type does not synchronize on mutable state. In one of my complex annotation processors I have manually synchronized the Type completion so that I can parallelize processing with coroutines and it greatly sped up processing. It would be really nice if this was supported out of the box by KSP as it would allow processors to be faster
j
Currently it’s not, we can discuss its feasibilities in our planning.
👍 1
e
thanks for considering it!