Skip to content

Fix end of line characters getting joined into line diff spans#186

Merged
amadeus merged 1 commit intobeta/0.6from
amadeus/line-diff-fix
Dec 2, 2025
Merged

Fix end of line characters getting joined into line diff spans#186
amadeus merged 1 commit intobeta/0.6from
amadeus/line-diff-fix

Conversation

@amadeus
Copy link
Copy Markdown
Member

@amadeus amadeus commented Dec 2, 2025

We used to rely on \n characters for this, but that also introduced a whole class of bugs because now we strip out those newline characters before diffing

OOPSIES
CleanShot 2025-12-01 at 20 56 29

We used to rely on `\n` characters for this, but that also introduced a
whole class of bugs because now we strip out those newline characters
before diffing
@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 2, 2025

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

Project Deployment Preview Updated (UTC)
pierrejs-diff-demo Ready Ready Preview Dec 2, 2025 4:56am
pierrejs-docs Ready Ready Preview Dec 2, 2025 4:56am
pierrejs-solid-diff-demo Ready Ready Preview Dec 2, 2025 4:56am

@amadeus amadeus merged commit a7a7afc into beta/0.6 Dec 2, 2025
3 checks passed
@amadeus amadeus deleted the amadeus/line-diff-fix branch December 2, 2025 04:57
amadeus added a commit that referenced this pull request Dec 3, 2025
We used to rely on `\n` characters for this, but that also introduced a
whole class of bugs because now we strip out those newline characters
before diffing
amadeus added a commit that referenced this pull request Dec 6, 2025
We used to rely on `\n` characters for this, but that also introduced a
whole class of bugs because now we strip out those newline characters
before diffing
amadeus added a commit that referenced this pull request Dec 8, 2025
We used to rely on `\n` characters for this, but that also introduced a
whole class of bugs because now we strip out those newline characters
before diffing
SlexAxton added a commit that referenced this pull request Apr 21, 2026
Improves the packages/trees file-tree profiler startup path for large pre-expanded/open trees. The change stack removes redundant prepared-input validation, represents profiler workloads with initialExpansion: 'open', slims PathStore node/storage shapes, reduces cold startup writes, tunes visible-child chunk summaries, and removes redundant FileTreeView mount/render work.

Experiments: kept runs #1, #16, #18, #24, #25, #26, #28, #36, #41, #42, #43, #44, #51, #65, #67, #68, #71, #74, #80, #82, #137, #139, #140, #142, #143, #147, #149, #153, #155, #163, #165, #171, #180, #182, #186, #196
Metric: visibleRowsReadyMs 334.8ms -> 253.8ms best (-24.2%); final kept sample 267.8ms (-20.0%).
SlexAxton added a commit that referenced this pull request Apr 22, 2026
Improves the packages/trees file-tree profiler startup path for large pre-expanded/open trees. The change stack removes redundant prepared-input validation, represents profiler workloads with initialExpansion: 'open', slims PathStore node/storage shapes, reduces cold startup writes, tunes visible-child chunk summaries, and removes redundant FileTreeView mount/render work.

Experiments: kept runs #1, #16, #18, #24, #25, #26, #28, #36, #41, #42, #43, #44, #51, #65, #67, #68, #71, #74, #80, #82, #137, #139, #140, #142, #143, #147, #149, #153, #155, #163, #165, #171, #180, #182, #186, #196
Metric: visibleRowsReadyMs 334.8ms -> 253.8ms best (-24.2%); final kept sample 267.8ms (-20.0%).
SlexAxton added a commit that referenced this pull request Apr 22, 2026
)

Optimize file-tree startup for large open trees

Improves the packages/trees file-tree profiler startup path for large pre-expanded/open trees. The change stack removes redundant prepared-input validation, represents profiler workloads with initialExpansion: 'open', slims PathStore node/storage shapes, reduces cold startup writes, tunes visible-child chunk summaries, and removes redundant FileTreeView mount/render work.

Experiments: kept runs #1, #16, #18, #24, #25, #26, #28, #36, #41, #42, #43, #44, #51, #65, #67, #68, #71, #74, #80, #82, #137, #139, #140, #142, #143, #147, #149, #153, #155, #163, #165, #171, #180, #182, #186, #196
Metric: visibleRowsReadyMs 334.8ms -> 253.8ms best (-24.2%); final kept sample 267.8ms (-20.0%).
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