Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit bc7f2df60843986fa5f415282c251636ec93d090
parent 88fbd65cb1db50e88f42719ea6e0d31343bedae1
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed,  4 Nov 2026 17:20:16 -0500

umtool: postPreload.want lets go AFTER the items wanted now are counted -- an attachment shared by an item leaving the window and one entering it (a repeated post) is kept, not revoked and fetched again

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/components/projects/review/playEngine/postPreload.ts | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/umtool/components/projects/review/playEngine/postPreload.ts b/umtool/components/projects/review/playEngine/postPreload.ts @@ -71,7 +71,6 @@ class PostPreloader { */ want(list: PostAssets[], keep: PostAssets[] = []) { const ids = new Set([...list, ...keep].map((x) => x.id)); - for (const id of [...this.items.keys()]) if (!ids.has(id)) this.release(id); for (const a of this.assets.values()) a.prio = Infinity; for (const it of keep) { this.items.set(it.id, it); @@ -89,6 +88,8 @@ class PostPreloader { for (const url of it.docs) this.ask(url, "doc", it.id, k); for (const url of it.files) this.ask(url, "file", it.id, k); }); + // Let go after: a file the items wanted now share with one let go (a repeated attachment) is kept, not fetched again. + for (const id of [...this.items.keys()]) if (!ids.has(id)) this.release(id); this.pump(); }