Versions 258 to 318
Lines 41–47 at 318 (were 41–59 at 258)
4141 * all the news it was told: 4.3 MB for abso's 109 agents) otherwise push every small page out of the cache.
44− /**
45− * Collections read straight through, never kept (abso Capacity): a file's packed line pages are read only to lay the
46− * file out, and the view keeps the layout, so keeping the pages too held them twice and pushed out the small rows
47− * read on every call (an agent's tree re-read 3,500 of them each time).
48− */
49− readonly #passThrough: (collection: string) => boolean;
50− constructor(
51− source: GraphStateStorage,
52− maxBytes = 1_048_576,
53− maxEntries = 4096,
54− maxEntryBytes = maxBytes,
55− passThrough: (collection: string) => boolean = () => false,
56− ) {
44+ constructor(source: GraphStateStorage, maxBytes = 1_048_576, maxEntries = 4096, maxEntryBytes = maxBytes) {
Lines 55–60 at 318 (were 67–73 at 258)
70− this.#passThrough = passThrough;
Lines 74–79 at 318 (were 87–93 at 258)
90− if (this.#passThrough(collection)) return this.#source.read(collection, key);
Lines 348–356 at 318 (were 362–368 at 258)
365− if (indexKey(key)) return Number(key) < length() ? read(key) : undefined;
351+ // No length read first (abso Capacity): set writes the row and the length together and nothing shrinks, so no
Lines 421–434 at 318 (were 433–438 at 258)
424+ /** Values [index * PAGE, (index + 1) * PAGE) of `key`'s list: one page, not the whole list (abso Capacity). */
- MCP
- compare on this site's /mcp
- CLI
- abso diff 258 318 src/engine/state-source.ts --json
- JSON
- /christopher/abso-core/compare/258..318?file=src%2Fengine%2Fstate-source.ts&format=json