keybase / kbfs

Keybase Filesystem (KBFS)
https://keybase.io/docs/kbfs
BSD 3-Clause "New" or "Revised" License
1.21k stars 137 forks source link

libkbfs: prefetch recently-edited files for non-synced TLFs #1957

Closed strib closed 5 years ago

strib commented 5 years ago

This PR enables the deep-prefetching of recently-edited files on TLFs into the working-set cache, as per design's request. To make this work:

I'm a bit scared of some of the implications here, since it means someone you don't know can create a folder with you and start making you download stuff. In a future PR I'll make sure the edit history only includes favorited folders, but that will have to wait for Jakob's work on the favorites cache. Also, I've observed this using quite a bit of CPU for the first few minutes after startup.

Issue: KBFS-3525