Versions 262 to 263
Lines 30–41 at 263 (were 30–38 at 262)
3232
33− constructor(graph: Graph, provider?: (graph: Graph) => ReadViewProvider) {
35+ constructor(graph: Graph, provider?: (graph: Graph) => ReadViewProvider, budget = VIEW_BUDGET) {
Lines 46–85 at 263 (were 43–52 at 262)
4855
57+ * Let go of the least recently used file layouts across every view, until about `over` bytes are freed (abso
58+ * Capacity). Evicting whole views dropped layouts just made along with old ones: compare 612 to 1224 on abso needs
59+ * both versions' layouts, about 25 MB, and evicting one whole after the call meant asking again laid it all out again.
63+ // One entry per layout: a layout several views hold (a draft's view borrows its base's) is used as recently as
65+ const layouts = new Map<object, { used: number; bytes: number; holders: { view: View; path: string }[] }>();
72+ } else layouts.set(f.layout, { used: f.used, bytes: f.bytes, holders: [{ view, path: f.path }] });
81+
Lines 95–101 at 263 (were 62–68 at 262)
65− if (total + w <= VIEW_BUDGET && kept < VIEW_COUNT) {
- MCP
- compare on this site's /mcp
- CLI
- abso diff 262 263 worker/project/views.ts --json
- JSON
- /christopher/abso-core/compare/262..263?file=worker%2Fproject%2Fviews.ts&format=json