[diffs/edit] Improve pieceTable performance - #1001
Merged
Merged
Conversation
50 latency in milliseconds; two warmups and nine measured samples per workload. Lower is better. | Workload | Baseline | Round 1 | Round 2 | Round 3 | Improvement | |---|---:|---:|---:|---:|---:| | Construct large document | 0.549 | 0.503 | 0.548 | 0.501 | +8.7% | | Sequential typing | 1.649 | 1.547 | 1.706 | 1.555 | +5.7% | | Scattered inserts | 3.726 | 3.481 | 3.120 | 3.406 | +8.6% | | Append after fragmentation | 1.003 | 0.995 | 0.629 | 0.784 | +21.9% | | Batch replacements | 3.302 | 3.139 | 3.042 | 3.254 | +1.5% | | Position round-trips | 11.630 | 11.497 | 10.759 | 12.414 | −6.7% | | Fragmented slices | 1.721 | 1.467 | 1.586 | 1.688 | +1.9% | | Whole-word search | 7.783 | 7.355 | 7.464 | 2.081 | +73.3% | | **Combined p50** | **31.364** | **29.983** | **28.854** | **25.683** | **+18.1%** |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ije
marked this pull request as ready for review
July 17, 2026 13:42
Collaborator
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
necolas
approved these changes
Jul 17, 2026
amadeus
pushed a commit
that referenced
this pull request
Jul 21, 2026
* [diffs/edit] improve picectable performance 50 latency in milliseconds; two warmups and nine measured samples per workload. Lower is better. | Workload | Baseline | Round 1 | Round 2 | Round 3 | Improvement | |---|---:|---:|---:|---:|---:| | Construct large document | 0.549 | 0.503 | 0.548 | 0.501 | +8.7% | | Sequential typing | 1.649 | 1.547 | 1.706 | 1.555 | +5.7% | | Scattered inserts | 3.726 | 3.481 | 3.120 | 3.406 | +8.6% | | Append after fragmentation | 1.003 | 0.995 | 0.629 | 0.784 | +21.9% | | Batch replacements | 3.302 | 3.139 | 3.042 | 3.254 | +1.5% | | Position round-trips | 11.630 | 11.497 | 10.759 | 12.414 | −6.7% | | Fragmented slices | 1.721 | 1.467 | 1.586 | 1.688 | +1.9% | | Whole-word search | 7.783 | 7.355 | 7.464 | 2.081 | +73.3% | | **Combined p50** | **31.364** | **29.983** | **28.854** | **25.683** | **+18.1%** | * another improvement * another improvement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Benchmark results
p50 latency in milliseconds; two warmups and nine measured samples per workload.
Changes: