summaryrefslogtreecommitdiff
path: root/docs/typ
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 16:15:14 -0300
committerGabriel Schneider <[email protected]>2026-11-05 19:16:37 -0300
commit60caa16b99c60713c5ae27832d76809a2b4a2d5a (patch)
treebfb02fff72012017d619c2919dae7b2587ad1bf7 /docs/typ
parent8de3d7b4719bddfd2c24a53e6db9278914c16410 (diff)
downloadpardes-60caa16b99c60713c5ae27832d76809a2b4a2d5a.tar.gz
pardes-60caa16b99c60713c5ae27832d76809a2b4a2d5a.zip
blob cache: the trim keeps the most recently used texts that fit under the cap, the newest first, and lets the rest go, where it let the least recently used go until the rest was under it: a text past the cap alone (a big file's, edited since the client joined) took every older one with it, the small ones that fit too, so a client after it with that cap was sent them all again (daemon.py's far clients E and F at a 1 MiB cap: F found nothing on disk, the 6.5 KB notes gone with the 1.1 MB file's texts; now the notes stay); tests: replica.zig's 'the blob cache stays under its cap, the least recently used going first, the file compacted' becomes '... going first and one past the cap alone without them, the file compacted', a 20 KB text past its 15 KB cap put newest, gone, and the three older ones kept
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'docs/typ')
0 files changed, 0 insertions, 0 deletions