Skip to content

Visual Studio Code, rebuilt in Rust

Rust

docs: set the fastest editor as the performance goal (#89)

Artur Rokd6355d569ae5
diff --git a/AGENTS.md b/AGENTS.md
index ae02343e987..f94ed17db93 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -24,6 +24,7 @@ Rules:
- The repository is public: no credentials, personal data or internal links in code, commits or docs.
- Remove temporary files and scripts made while working.
- `unsafe` only in `app` and `exthost`, each block under a `// SAFETY:` comment that names the fact it relies on, its file a row of the inventory in `docs/memory-safety.md`. The check: `cargo gc clippy -p app -p exthost --all-targets -- -A clippy::all`.
+- Speed and memory are the product: the goal is the fastest editor there is, ahead of Zed on every benchmark and lowest in RAM, with every VS Code feature (`docs/performance.md`). Every change picks the design that costs the least time and memory; one that makes a measured number worse names it and why in the report.
- No I/O and no work in proportion to the whole document or tree on the main thread in a hot path. A change to a hot path reports the numbers of its gate (`docs/performance.md`) from before and after.
- Before writing a piece that is new to the project from scratch, read how 2 or 3 open-source projects do it, and name them with the choice in `port/notes.md`.
- Documents cite code as a path plus a symbol, never a line number. After a rename, a move or a deleted symbol: `bun port/tools/docs-check.ts`.
diff --git a/docs/performance.md b/docs/performance.md
index ba2d7543f87..cece461be5f 100644
--- a/docs/performance.md
+++ b/docs/performance.md
@@ -2,7 +2,9 @@
"Fast" is a property the project checks, not a hope. This file has the budgets the port holds today, the rules that keep hot paths fast, how to measure, and the gates that fail on a regression. [ARCHITECTURE.md](../ARCHITECTURE.md) has the map of the code.
-The targets are two editors. VS Code 1.148.0 is the floor: the port must not be worse on a budget, and one budget is ([idle CPU](#whole-app-measured-from-outside)). Zed is the bar for a native editor: the port must be at the same level or better. The port is behind Zed on peak memory and RSS ([Zed](#zed)).
+The goal: the fastest code editor there is, with every feature of VS Code 1.148.0. Fastest means ahead on every benchmark we can run (startup, input latency, frame time, scroll, open a large file, search, terminal throughput, quit) and the lowest memory (RSS, peak footprint, footprint at idle), against Zed and against every smaller native editor we can measure. A feature is never cut to win a number: the port stays 1:1, and the work goes into making the feature cheap.
+
+The targets are two editors today. VS Code 1.148.0 is the floor: the port must not be worse on a budget, and one budget is ([idle CPU](#whole-app-measured-from-outside)). Zed is the bar for a native editor: the port must be ahead of it, and level is a gap. The port is behind Zed on peak memory and RSS ([Zed](#zed)). Another editor joins as a reference through `port/tools/bench`, the way Zed did.
## Budgets