Chapter 5
Optimizations to Improve App Startup and Performance
Section 5
Using Sequences to Avoid Creating Temporary Lists
Running multiple operations, such as chaining filter and map calls on large collections, can result in poor performance. Find a solution to improve performance when running multiple operations on large collections. - Use Kotlin Bytecode tool to identify performance issues - Replace the implementation with a sequence - View equivalent Java code to confirm the removal of temporary lists