GitHub
GitHub logoGitHub · Feature trail

Pull Request Files Changed Performance

4 posts · Dec 2016 – Sep 2026

What this trail covers

This feature thread tracks the evolution of the Pull Request 'Files changed' tab performance. Initially, the focus was on general responsiveness. This post details significant optimizations for rendering diff lines, reducing DOM node counts, memory usage, and improving Interaction to Next Paint (INP) scores, especially for large pull requests. It introduced strategies like focused diff-line optimizations, graceful degradation with virtualization, and foundational rendering improvements. The v2 release of the 'Files changed' tab introduced a new architecture to handle extremely large pull requests by splitting the document's height into deterministic code geometry and dynamic block geometry, with a sophisticated measurement scheduler and scroll anchoring to maintain responsiveness.

All GitHub trails