Memory: remove the whole-Home notes.list (#398) #444
Loading…
Reference in a new issue
No description provided.
Delete branch "train/2026-10-15m"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #398 (approved by kayg on 2026-10-15, Q5 on #174).
What
notes.listno longer has a whole-Home form. With no input it now returns the first page of 50, the same as{}. Before, it built every note of the Home into one answer: 100,000 objects at 100k notes. The app only asks for pages (limit: 500), and the form was marked "deprecated; for one release".ItemandNotes::liststay inside the server. The search provider and renames still use them, and they read the id index, not the list store.home.first_list,home.listandmem.after_listare gone, andmem.after_first_pageis new. The cold run opens the Home with a first page, as the app does, and reports it ascold.first_page.The contract (
contracts/actions.json) doesn't change, because the input schema is the same.Numbers
These are from the perf VM at 100k notes, #44 round 21. All8 was run twice: as is, and with the harness's 21 whole-Home calls left out. That comparison is what this PR does to a real run. Values are p50 / p95.
On this branch, the #398 runs on the perf VM (100k, dropped caches) gave these numbers:
mem.peak142 / 180 MB.Checks:
cargo fmt,clippy -D warningsand the workspace tests are clean (Rust 1.99.0).🤖 Generated with Claude Code
https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
(Replaces #417, merged with current dev. Review on #417.)
`notes.list` without input built every note of the Home into one answer (100,000 objects at 100k notes, hundreds of megabytes at once). The app only asks for pages, and the form was deprecated "for one release". Without input it now returns the first page of 50, like `{}`. The perf harness no longer calls it: `home.first_list`, `home.list` and `mem.after_list` are gone (`mem.after_first_page` instead), and the cold run opens the Home with a first page (`cold.first_page`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T