# list-performance-virtualize

list-performance-virtualize is a Claude Code rule that recommends virtualized lists for scrollable content. It applies while building list-based screens.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 88 repo stars
- Author: alexj11324
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/alexj11324/Mikka/tree/HEAD/.claude/skills/react-native-skills/rules/list-performance-virtualize.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/list-performance-virtualize

## What it does

The rule favors a list virtualizer over placing mapped children inside `ScrollView`. Its examples use `LegendList` and `FlashList`, which mount items as they enter the visible area rather than creating every row at once.

The recommendation also covers short lists. The rule names feeds, profiles, settings, and search results as places where it applies, and its examples use React components. For Claude Code, place the rule at `.claude/rules/list-performance-virtualize.md`.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/list-performance-virtualize.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/list-performance-virtualize.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/list-performance-virtualize.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/list-performance-virtualize.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/list-performance-virtualize.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/alexj11324/Mikka/tree/HEAD/.claude/skills/react-native-skills/rules/list-performance-virtualize.md

## When to use it
- replace a mapped `ScrollView` list with virtualization
- limit how many list items mount at once
- virtualize a feed or search results
- choose between `LegendList` and `FlashList`

## Example prompts
- Replace the mapped children in `ScrollView` with a list virtualizer.
- Build this feed with `LegendList` and `ItemCard`.
- Rewrite the search results using `FlashList`.

## Similar
- [list-performance-function-references](https://affpapa.org/en/nevibecode/rules/list-performance-function-references.md) — rule · ★ 1216 repo stars
- [list-performance-item-memo](https://affpapa.org/en/nevibecode/rules/list-performance-item-memo.md) — rule · ★ 1216 repo stars
- [legend-list-best-practices](https://affpapa.org/en/nevibecode/skills/legend-list-best-practices.md) — skill · 562 installs
- [react-performance-optimizer](https://affpapa.org/en/nevibecode/skills/react-performance-optimizer.md) — skill · 215 installs
- [conductor-rewrite-performance](https://affpapa.org/en/nevibecode/skills/conductor-rewrite-performance.md) — skill · 186 installs
- [react-performance-expert](https://affpapa.org/en/nevibecode/agents/react-performance-expert.md) — subagent · ★ 763 repo stars

From the same set: [alexj11324/mikka](https://affpapa.org/en/nevibecode/by/alexj11324/mikka.md) — 47 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
