Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 937 Bytes
docid title layout permalink
inc-mount-architecture
Incremental Mount
docs
/docs/inc-mount-architecture

Even though components provide flatter view hierarchies and perform layout off the main thread, the mount operation (creating, recycling and attaching views and drawables) can still have a cost in the UI thread for very complex components, especially for the ones containing many views.

Litho can transparently spread the cost of mounting components across UI frames to avoid jank.

With incremental mount enabled (which it is by default), the LithoView will only mount enough content to fill its visible region and unmount (and recycle) components that are no longer visible.

Incremental Mount Diagram

If you are using the Litho async RecyclerView support, the framework will seamlessly perform incremental mount.