Fix lag when large diff hunk intersects the viewport (#26088)

We were iterating over the row range of a hunk, and inserting into a
hash map for every row.

Release Notes:

- Fixed a performance problem when a large diff hunk was displayed in an
editor.
fe18c73a07Max Brunsfeld committed on 3/5/2025, 12:25:58 AM· committed by GitHubparentbefacfe
1 file changedLine totals unavailable