Skip to content

perf: accelerate source scanning and split-pane editing - #6

Merged
YishenTu merged 1 commit into
mainfrom
codex/accelerate-source-edit-pipeline
Sep 8, 2026
Merged

YishenTu merged 1 commit into
mainfrom
codex/accelerate-source-edit-pipeline

Conversation

@YishenTu

@YishenTu YishenTu commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Small edits in long lines and split panes spent time rescanning unchanged text and restyling peer selections. Keep captured edits bounded, restore peer selection within the focus-aware styling scope, and scan unchanged UTF-16 spans in bulk. Compute document metadata in one UTF-8 pass and update the line index using only the edit and its CRLF boundary context.

Add regression coverage for Unicode/chunk boundaries, CRLF normalization and line-index seams, and unfocused peer selection. Tighten edit-pipeline performance budgets and assert that split-pane propagation neither rebuilds the peer pane nor publishes extra source revisions.

Local optimized-build p95 measurements (nine samples per workload):

Workload Before After
Split-pane edit propagation, 128 KiB 1,377 ms 110 ms
Unicode metadata preparation, 4 MiB 182 ms 4.0 ms
Fallback binding reconciliation, 4 MiB 28.9 ms 0.72 ms
Long-line index edit, 1 MiB 5.21 ms 0.001 ms

Validation: ./scripts/verify.sh passed, including arm64 Debug/Release builds, lint, architecture checks and fixtures, vendor validation, 447 unit tests, 23 E2E tests, and 18 performance tests. Independent review completed after the CRLF boundary correction. Timings are local measurements, not cross-machine guarantees.

Startup investigation is paused and excluded from this PR. Packaging, installation, signing, and distribution were not run.

@YishenTu
YishenTu merged commit b37376a into main Sep 8, 2026
1 check passed
@YishenTu
YishenTu deleted the codex/accelerate-source-edit-pipeline branch September 8, 2026 08:19
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