Chapter 5
Optimizations to Improve App Startup and Performance
Section 2
Using Late and Lazy Properties to Delay Initialization
Loading an application with large initialization data can result in slow startup times of the application. This can be mitigated by delaying the loading of the list until required. Find a solution whereby the data can be loaded on demand. - Manually implement a lazy initialization pattern with a backing property - Replace the pattern with the Kotlin lazy delegate - Run code and check that both results are the same