Skip to content

[diffs/edit] Add search-match viewport culling#1008

Merged
ije merged 2 commits into
beta-1.3from
ije/improve-edit-perf-2
Jul 21, 2026
Merged

[diffs/edit] Add search-match viewport culling#1008
ije merged 2 commits into
beta-1.3from
ije/improve-edit-perf-2

Conversation

@ije

@ije ije commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

This pr fixes search-match overlay renders all matches with no viewport culling by:

  • Binary-searches offset-sorted matches for each rendered line segment.
  • Skips virtualized offscreen matches and matches hidden inside collapsed diff gaps.

- Binary-searches offset-sorted matches for each rendered line segment.
- Skips virtualized offscreen matches and matches hidden inside collapsed diff gaps.
@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pierre-docs-diffs Ready Ready Preview Jul 21, 2026 9:38am
pierre-docs-diffshub Ready Ready Preview Jul 21, 2026 9:38am
pierre-docs-trees Ready Ready Preview Jul 21, 2026 9:38am
pierrejs-diff-demo Ready Ready Preview Jul 21, 2026 9:38am

Request Review

@ije

ije commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: dd9b2d88b8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ije
ije requested review from amadeus and necolas July 20, 2026 14:47
@ije
ije merged commit dc174d6 into beta-1.3 Jul 21, 2026
8 checks passed
@ije
ije deleted the ije/improve-edit-perf-2 branch July 21, 2026 09:39
amadeus pushed a commit that referenced this pull request Jul 21, 2026
- Binary-searches offset-sorted matches for each rendered line segment.
- Skips virtualized offscreen matches and matches hidden inside collapsed diff gaps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants