Skip to content

feat: improve console virtualisation - #2882

Merged
bajrangCoder merged 1 commit into
mainfrom
console-scroll-performance
Sep 12, 2026
Merged

feat: improve console virtualisation#2882
bajrangCoder merged 1 commit into
mainfrom
console-scroll-performance

Conversation

@bajrangCoder

Copy link
Copy Markdown
Member

No description provided.

@greptile-apps

greptile-apps Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with no concrete correctness, security, or repository-rule violations identified.

Summary

  • Extends clean offset tables incrementally when appending items.
  • Adds directional overscan, immediate reversal rendering, and buffered-window render suppression.
  • Reconciles ResizeObserver targets incrementally instead of reconnecting every render.
  • Adds coverage for jumps, reversals, list boundaries, offset rebuilding, observer lifecycles, and stable buffered windows.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Scroll event] --> B[Calculate delta, direction, and dynamic overscan]
  B --> C{Direction changed?}
  C -- Yes --> D[Perform full synchronous render]
  C -- No --> E{Viewport remains inside half-buffer?}
  E -- Yes --> F[Keep existing mounted window]
  E -- No --> D
  D --> G[Rebuild dirty offsets]
  G --> H[Compute directional before/after range]
  H --> I[Update mounted rows and spacers]
  I --> J[Observe added rows and unobserve removed rows]
Loading

Reviews (1) · Last reviewed commit: "feat: improve console virtualisation"

@bajrangCoder
bajrangCoder added this pull request to the merge queue Sep 12, 2026
Merged via the queue into main with commit 1e7043e Sep 12, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in The Code Board - Acode Sep 12, 2026
@bajrangCoder
bajrangCoder deleted the console-scroll-performance branch September 12, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant