Skip to content

optimze region creation#111

Open
jacob314 wants to merge 1 commit into
masterfrom
optimze_blank2
Open

optimze region creation#111
jacob314 wants to merge 1 commit into
masterfrom
optimze_blank2

Conversation

@jacob314

@jacob314 jacob314 commented Apr 10, 2026

Copy link
Copy Markdown
Owner

Reduce memory usage by handling region where most of the lines are empty more efficiently.
We were creating large almost completely empty boxes for common layouts with an enormous box that scrolls to the backbuffer with multiple regions inside it each corresponding to a static item.
This resulted in unneeded lines and a lot of wasted work comparing those lines.

Update snapshot for scroll-blue-background

Update snapshot for scroll-demo.sticky-on

Update SVG snapshot for scroll-blue-background

Fix terminal-buffer linesOffsetY and scrollToBackbuffer issues

Optimize IPC by trimming leading/trailing empty lines in diffs

Fix flaky scroll integration test

fix(terminal-buffer): only skip leading empties if old line was also empty

Update scroll snapshots reflecting fixed sticky header behavior

Fix garbled text on naturally scrolling headers
│2 This is line in a line in a box. This is some text that is long enough to require some word wrapping. │
│3 This is line in a line in a box. This is some text that is long enough to require some word wrapping. │
│4 This is line in a line in a box. This is some text that is long enough to require some word wrapping. │
│This is the first line of box 0 with yellow text. │ █

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

content is the same except now the scrollbar is visible when before it was missing.

@jacob314 jacob314 changed the title optimze blank2 optimze region creation Apr 10, 2026
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.

1 participant