Under the hood of Zed.
An independent, source-based exploration of Zed: its data structures, text engine, UI runtime, concurrency model, and performance trade-offs.
Deep technical exploration . Last update of this study, stated for information only: it is not refreshed automatically and may therefore be stale. . Dernière mise à jour de l'étude, à titre indicatif : elle n'est pas réactualisée automatiquement et peut donc être périmée.
THE APPROACH
Read the code. Trace the behavior. Identify the trade-offs. Measure before making performance claims. Every claim on this site is labelled as verified, analysis, or open hypothesis.
00 / EVIDENCE STATUS
33 tests, executed.
Thirty-three scenarios run against Zed's own crates at a pinned revision: five adversarial insert/delete cases and a six-order permutation case against text, each asserting Zed's own check_invariants(); eight against clock, which ships with no tests of its own; five against scheduler, pinning the priority weights and the !Send executor boundary; and fourteen against sum_tree and rope, covering copy-on-write independence, summary aggregation, seek bias, and byte-versus-character columns.
Latency, measured on real code.
A harness linked against the pinned source shows edit cost staying near-constant as documents grow 200x, and a rope chunk size of exactly 128 bytes explaining why.
01 / SYSTEM MAP
!Send executor, the 6:3:1 weighted priority draw, and Lamport ordering across replicas.13 TESTS EXECUTED
08 - POSITIONINGLocator deep diveOrdered identifiers, insertion between positions, depth, and adversarial patterns.INITIAL NOTES
09 - DATA STRUCTURESumTreeAggregated summaries, multidimensional traversal, cursors, and copy-on-write behavior.14 TESTS EXECUTED
10 - REPRODUCTIONFrom zero to the numbers.The pinned toolchain, the sparse checkout, every command and what each one proves, and the limits of what this study covers.START HERE IF YOU WANT TO RUN IT
02 / EVIDENCE MODEL
Engineering, not guesswork.
This project distinguishes what the source code proves from what an engineer can reasonably infer, and from questions that still need experiments. Benchmarks are workload-specific; implementation details are tied to upstream source.
Three levels of confidence.
VERIFIED Directly supported by inspected source code or tests.
ANALYSIS An interpretation of observed implementation and likely consequences.
HYPOTHESIS An open claim requiring more tracing, tests, or measurement.
03 / RESEARCH PRINCIPLES
04 / UPSTREAM
Zed Industries / Zed
This is an independent engineering study. It is not affiliated with, endorsed by, or sponsored by Zed Industries.
Open notebook. Living investigation.
Documentation, source links, diagrams, questions, and future benchmark plans live in the GitHub repository.