You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 32c4cc8
Browse filesBrowse the repository at this point in the historyBrowse files
cache: count the cooks the disk answered, and pin the number in a test
`Session::cooks_served_from_disk` is the instrument the per-file cache is judged by: a cook that rendered, parsed and
indexed nothing because the record was already on the disk. The warm run on `test_cpp` reports **106**, and the
cross-session test now asserts the counter rather than only its effects (no timeline walked, `view` answerable).
The measured budget, final:
| | before this work | after |
| --- | --- | --- |
| private bytes, peak | 1 196 MB | **595 MB** |
| idle churn (20 s) | 4 505 MB | **414 MB** |
| whole-program reads | 18 | 3 |
| stored cooks served | 0 | **106** |
| live at the end | 371 MB | 200 MB |
What the last numbers are: the cold start (372 files read once) and the focused document's program read. What they are
not: a repeat of a cook, a rendering or a program read that has already been done.
| live at the end | 371 MB | 413 MB | 186 MB | 175 MB |**187 MB**|
1376
1376
1377
1377
The closure sweep follows the same rule now: `advance` cooks the **focused** document's closure, not every open
@@ -1405,6 +1405,7 @@ first:
1405
1405
they did, in the first attempt.
1406
1406
1407
1407
Measured on `test_cpp` (twenty files open, no request, twenty seconds idle): **106 stored cooks served**, idle churn
1408
-
**284 MB**, private bytes peak **616 MB**. The goal's budget — ≤700 MB, idle churn near zero — is met; what is left of
1408
+
**414 MB**, private bytes peak **595 MB** (two runs, 106 hits each; the misses — 24 in the last one — are the files
1409
+
the program read re-files as facts and the ones a request named, not repeats of an unchanged cook). The goal's budget — ≤700 MB, idle churn near zero — is met; what is left of
1409
1410
the number is the cold start itself (372 files read once, ~600 MB of allocator retention) plus the focused document's
0 commit comments