Skip to content

Instantly share code, notes, and snippets.

@JaganKandi
JaganKandi / metrics.md
Last active September 29, 2025 14:38
Intersection Observer vs React Window

📊 Memory Usage Comparison

Scenario Intersection Observer React Window
1,000 items ~1.0–1.5 MB ~0.5–1.5 MB (constant)
10,000 items ~10–15 MB ~0.5–1.5 MB
100,000 items ~100–150 MB ~0.5–1.5 MB

Note: These are approximate metrics based on typical DOM structures. Actual memory usage may vary depending on the browser, device, and item complexity.