Channel posts: draw only what is near; caches with a budget #270
No reviewers
Labels
No labels
area/ci
area/desktop
area/packaging
area/protocol
area/reading
area/ui
area/web
area/writing
kind/bug
kind/feature
kind/infra
kind/request
needs/user
parked
perf
security
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
littlefox/neokom!270
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-236-bounded"
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?
Closes #236
WINDOW_JS: an IntersectionObserver on the reading column, 1500 px around it). Far posts become empty blocks as tall as they were, their content dropped, and are fetched again (six at a time, mostly from the cache) when they come near. Older pages load as the top comes near ("Visa äldre" stays for the keyboard); at the bottom the list stays at its bottom while it grows above, like a chat.Kom's caches have budgets (kom_client::lru): 20 000 text stats, 32 MB of bodies, 5 000 conferences; past a budget the least recently used tenth goes, and is fetched again when needed.Measured with
tools/perf.sh, scrolled back through the channel:Verified: new
channel-window.spec(126 posts: placeholders far away, fewer than 80 drawn, the newest come back at the bottom); channel-posts spec adjusted (pages may come by themselves); full e2e on three profiles 335 passed; devserver tests; LRU unit tests; lint four ways.🤖 Generated with Claude Code
https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8