Legend List is a high-performance list rendering library designed to display massive collections of data with varying item heights. It utilizes windowed virtualization and a measured-height cache to render only the visible portion of a list, preventing lag and maintaining a smooth frame rate.
The library specializes in bidirectional infinite scrolling and stable scroll anchoring, which prevents visual jumps when content is prepended to the top of a list. It includes specific alignment capabilities to keep content pinned to the bottom, supporting the layout requirements of chat interfaces.
To reduce memory overhead and rendering costs, the system employs component recycling to reuse a small pool of instances as items scroll into the viewport. It further decouples the data source from the view layer through asynchronous rendering to prevent main thread blocking.