Post

You know how you can render a 10,000-line diff without melting the browser? By focusing on simplicity. 🧵

After overhauling the React architecture of GitHub's "Files changed" tab, we dropped Interaction to Next Paint (INP) from ~450ms to ~100ms.

0 reposts3 likes

📉 React components cut from 8 to 2 per line 🔑 O(1) data access with JS Maps 🪟 Window virtualization for giant PRs