Skip to content

Commit 661e9d7

Browse files
committed
docs: update the front end's size table for Settings
1 parent 9900cd4 commit 661e9d7

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎docs/specs/web-ui.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| Parity, never more | The page never gets behaviour the CLI lacks. When the page needs a value no command prints, the CLI gains it first, in the same or an earlier change ([cli](cli.md)). Editing aids belong to the editor, not to practice: [code intelligence](#code-intelligence-sessions), like highlighting, grades nothing, records nothing and writes no file, and terminal users get the same from the language servers their IDE runs on the workspace ([ADR 0018](../decisions/0018-editor-code-intelligence.md)); the CLI's part is installing and checking the servers ([`cstudy doctor`](cli.md#cstudy-doctor)) |
1010
| One judge | Runs are child `cstudy` processes; the page never runs user code itself and never judges an output |
1111
| Same documents | An endpoint that has a matching `--json` document returns it unchanged, so one JSON Schema serves both |
12-
| No state of its own | Files live in the workspace and progress in `progress.db`; the terminal, the IDE and the page always agree. The only page-owned file is the preferences file ([Preferences](#preferences)) |
12+
| No state of its own | Files live in the workspace and progress in `progress.db`; the terminal, the IDE and the page always agree. The only page-owned file is the preferences file ([Preferences](#preferences)); the user's [config file](cli.md#configuration) it writes only when Settings is asked to, keeping the rest of the file |
1313
| Local | The server binds `127.0.0.1` only and makes no network request; the page loads nothing from anywhere but the server |
1414

1515
## Command parity

‎tools/web-ui/README.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,21 @@ Sizes as of the current lockfile, gzip at level 9; a row fetched on first use co
5757

5858
| Load | Raw KB | Gzip KB |
5959
|------|-------:|--------:|
60-
| The page, before any file opens: `app.js`, the chunks it imports, and `app.css` | 80.8 | 29.0 |
61-
| Every JavaScript and CSS file but Vim and the code-intelligence chunk | 963.6 | 347.4 |
62-
| The editor before any language: the page, the editor and the core | 487.7 | 165.4 |
63-
| A Python file | 558.1 | 192.3 |
64-
| A TypeScript or JavaScript file, the largest grammar | 596.6 | 205.9 |
60+
| The page, before any file opens: `app.js`, the chunks it imports, and `app.css` | 80.7 | 28.7 |
61+
| Every JavaScript and CSS file but Vim and the code-intelligence chunk | 967.9 | 348.9 |
62+
| The editor before any language: the page, the editor and the core | 487.5 | 165.1 |
63+
| A Python file | 558.0 | 192.1 |
64+
| A TypeScript or JavaScript file, the largest grammar | 596.5 | 205.6 |
6565
| Vim keybindings, added on top | 120.5 | 38.4 |
66-
| The link between the editors and the sessions, fetched when `code_intelligence` is on (it counts in the whole bundle) | 8.7 | 3.9 |
66+
| The link between the editors and the sessions, fetched when `code_intelligence` is on (it counts in the whole bundle) | 8.6 | 3.9 |
6767
| The code-intelligence chunk, fetched when a file of a language with an installed server opens (its own budget: 64 KB raw, 24 KB gzip; `@codemirror/lsp-client` with `marked` aliased to a stand-in) | 35.4 | 12.9 |
6868
| The Problem view, fetched when it first opens | 4.3 | 1.8 |
69-
| The Mock and Progress views together, each fetched when it first opens (Progress with the dialogs, for Start and Import) | 35.3 | 14.2 |
70-
| The Health and Settings views together, each fetched when it first opens (with the chunks they share) | 14.4 | 6.9 |
69+
| The Mock and Progress views together, each fetched when it first opens (Progress with the dialogs, for Start and Import) | 35.3 | 14.3 |
70+
| The Health and Settings views together, each fetched when it first opens (with the chunks they share) | 19.2 | 8.9 |
7171
| The run session, fetched when a run first starts or shows: streaming and drawing it, Cancel, diagnostics | 22.4 | 8.3 |
7272
| The Run options form, fetched when it first opens | 4.5 | 2.1 |
73-
| The job panel for Bench, fetched when Bench first starts (Health fetches it with its view) | 5.1 | 2.4 |
74-
| Every dialog, fetched when a control first opens one: sheets, confirmations, questions that ask for names, the Start, Done and Solution dialogs, the code of a past attempt (the editor comes once a file shows), and the file tree's menu and actions | 23.4 | 9.0 |
73+
| The job panel for Bench, fetched when Bench first starts (Health fetches it with its view) | 5.0 | 2.4 |
74+
| Every dialog, fetched when a control first opens one: sheets, confirmations, questions that ask for names, the Start, Done and Solution dialogs, the code of a past attempt (the editor comes once a file shows), and the file tree's menu and actions | 23.4 | 9.1 |
7575

7676
The budget (NFR-12) is 1 MB raw and 350 KB gzip for the whole bundle without Vim and the code-intelligence chunk, the page's code included, and 600 KB raw loaded before a file of one language is editable. What a view or a control needs only when it is used is a chunk of its own (the rows above), so the page, the largest grammar and the editor stay under the 600 KB; `cli/tests/entrypoints/web/test_bundle_budget.py` holds the committed files to both limits. Markdown uses `markdownLanguage` instead of `markdown()`, which would add the HTML, CSS and JavaScript grammars for embedded HTML and take a Markdown file to 619 KB.
7777

0 commit comments

Comments
 (0)