Howdy! I’m reading `KDoc` for `com.google.devtools...
# ksp
v
Howdy! I’m reading
KDoc
for
com.google.devtools.ksp.symbol.KSTypeReference#resolve
and it says
Copy code
Calling [resolve] is expensive and should be avoided if possible.
Does anyone know should I bother about memoizing the result if I plan to call
resolve
several times on the same type in different places? Or is it being cached somewhere inside?
t
It's cached in KSP. Only the first time each reference is resolved is expensive.
v
Sweet! Thank you for saving my time! ❤️
👍 1