configuring-lazy-prefetch
CommunityTune lazy prefetch for smoother scrolls.
Software Engineering#performance#jetpack-compose#lazy-prefetch#frame-timing#lazy-layout-cache-window#pausable-composition#nested-prefetch
Authorskydoves
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Identify when to adjust the LazyLayoutCacheWindow to reduce frame drops during high-velocity scrolling by tuning ahead and behind extents.
Core Features & Use Cases
- Tune ahead/behind cache windows via LazyLayoutCacheWindow(ahead, behind) plumbed through rememberLazyListState and used by LazyColumn (with @OptIn).
- Use NestedPrefetchScope for items that host inner lazy layouts to warm inner content during the outer prefetch phase.
- Follow prerequisites (Compose Foundation 1.9+ for cache window support; 1.10+ for pausable prefetch) and verify improvements with Macrobenchmark.
Quick Start
Measure frame timings and then implement a LazyLayoutCacheWindow with ahead and behind values plugged into rememberLazyListState and applied to your LazyColumn.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: configuring-lazy-prefetch Download link: https://github.com/skydoves/compose-performance-skills/archive/main.zip#configuring-lazy-prefetch Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.