Does lateinit has a performance cost?
I mean it adds additional if check for every access to the variable?
f
franztesca
03/04/2023, 6:36 PM
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++