← Back to portfolio

List virtualization, visualized

Toggle windowing on a long scrolling list and watch what actually changes: how many rows exist in the DOM right now, and the estimated per-frame render cost that follows from it. This is the mechanism behind FlatList / FlashList in React Native — mount only what’s near the viewport, recycle the rest. No backend; everything below runs in your browser.

0.9ms
4
Estimated main-thread cost for this frame (mounted rows × cost/row) 0.0ms
Budget line at 16.6ms — the time a frame has to finish in in order to hold 60fps. Switch to “Render all” on 10,000 rows to see why unbounded lists are the most common React Native scroll-jank cause, and why initialNumToRender, windowSize and getItemLayout exist.

Built by Pushpendra Mishra — React Native / React engineer. Vanilla JS, one file, theme-aware. Code reference: public-demos/list-virtualization-performance-demo · read the case study →