Karlo Lozovina
01/26/2022, 10:51 PMlateinit
property compared to a regular value? Let's say a reference to an instance...Joffrey
01/26/2022, 10:52 PMnull
vs non-null under the hood, so there should be no overhead. Maybe you might lose on some optimizations due to the fact that lateinit var
is a var
as opposed to a val
- but that's not the lateinit's doing. And I don't believe it would make a measurable difference.
All of this is speculation, thoughephemient
01/26/2022, 10:54 PMephemient
01/26/2022, 10:54 PMKarlo Lozovina
01/26/2022, 10:57 PMephemient
01/26/2022, 10:58 PM