How it works...
As with developing any app, the more flexible and complex something is, the slower it performs. ListView is an excellent example of this concept. It is extremely flexible, since it can render any View in a row, but it can quickly bring your application to a halt if not used carefully. The result of the optimizations defined in step 1 to step 4 will vary across different situations based on what you are rendering and the data structure that is being used by the ListView. You should experiment with these values until you find a good balance. As a last resort, if you are still unable to achieve the required performance benchmark, you can look at some of the community modules that provide new ListView implementations or alternatives. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access