Does lateinit has a performance cost? I mean it ad...
# effective-kotlin
g
Does lateinit has a performance cost? I mean it adds additional if check for every access to the variable?
f
I think so, but the check is very cheap. It's unlikely that it is noticeable performance-wise. If for your use case you care about this level of performance, use c++