After overhauling the React architecture of GitHub's "Files changed" tab, we dropped Interaction to ...

- 将 INP 从 450ms 降至 100ms
- 每行 React 组件从 8 个减少到 2 个
- 使用 JS Maps 实现 O(1) 数据访问
📉 React components cut from 8 to 2 per line 🔑 O(1) data access with JS Maps 🪟 Window virtualization for giant PRs" / X
Post
Conversation

After overhauling the React architecture of GitHub's "Files changed" tab, we dropped Interaction to Next Paint (INP) from ~450ms to ~100ms. !Image 2: 📉 React components cut from 8 to 2 per line !Image 3: 🔑 O(1) data access with JS Maps !Image 4: 🪟 Window virtualization for giant PRs
New to X?
Sign up now to get your own personalized timeline!
By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.
Trending now
What’s happening
Trending in United States
#allfire!Image 5
Trending in United States
Good Wednesday
Trending in United States
#MLBS6Spoilers
Sports · Trending
Vando
|
|
|
|
|
© 2026 X Corp.