INSIDE ZED Upstream ↗ Repository ↗
INDEPENDENT RUST ENGINEERING STUDY / 001

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.

RUST ENGINEERING DATA STRUCTURES TEXT SYSTEMS PERFORMANCE

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.

Read the auditRead the runtime pageRead the data structures

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.

See the measurements

01 / SYSTEM MAP

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

A / SOURCE FIRSTImplementation before interpretation.Use exact paths, symbols, tests, and revision context.
B / TRACE END TO ENDConnect the layers.Follow an operation from public API to mutation, storage, history, and synchronization.
C / MEASURENo performance theatre.Separate asymptotic reasoning from observed benchmark results.
D / STAY HONESTExpose what's unknown.Keep open questions visible and update conclusions when the code changes.

04 / UPSTREAM

Zed Industries / Zed

This is an independent engineering study. It is not affiliated with, endorsed by, or sponsored by Zed Industries.

Explore the upstream source

Open notebook. Living investigation.

Documentation, source links, diagrams, questions, and future benchmark plans live in the GitHub repository.

Browse repository