aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread-cache.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-30 19:27:26 +0000
committerAdam Soltys <[email protected]>2026-09-30 19:27:26 +0000
commitbe6e447c8960e0b74308137efa10b45d0763b922 (patch)
treee6e203918e1ce10e91caa22b10794c6862f1b985 /src/thread-cache.js
parent0879e4f55dcee9bb7af86b1e4e2a62ee9d6ef3b6 (diff)
downloadcoinosv3-be6e447c8960e0b74308137efa10b45d0763b922.tar.gz
coinosv3-be6e447c8960e0b74308137efa10b45d0763b922.zip
Switching feeds paints posts at once instead of a spinner while the relays answer.
The disk cache held four feeds, so with more chips than that (or one never opened here) a switch opened on nothing. Now: - up to twelve feeds on disk: the four read last keep a page of 30, the rest 5 seed posts (same 256 KB budget); - once the feed on screen settles, every other feed with nothing on disk has its first posts fetched ahead, one small request each, every 15 min; - a feed with nothing on disk borrows matching posts (its people, its topics) that open feeds already hold. tools/feed-switch-seed-test.js: with 8 s relays, a fetched-ahead feed and a never-opened topic feed both paint rows at once (fails on the old code). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WMMwWYJkPQxLgfMsY7hWcU
Diffstat (limited to 'src/thread-cache.js')
0 files changed, 0 insertions, 0 deletions