You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cache clearing via the ageLimit can be too slow when too many items expire all at once. This can hurt app-startup performance. As far as I understand it, this is slow because we check file timestamps and remove files one at a time. Removing directories is faster than removing files so if there were some way that the disk cache could optimize this to remove directories.
Random ideas:
Persist the "oldest" timestamp and do a quick check in the beginning to just wipe the full directory. Downside: Must wipe entire cache.
Add layer(s) of inner directories grouped by some time interval. Then we can wipe huge chunks of the cache efficiently. The semantics of how this could work exactly need more looking into. Downside: Invalidates caches for existing users, and is complex.
The text was updated successfully, but these errors were encountered:
Cache clearing via the ageLimit can be too slow when too many items expire all at once. This can hurt app-startup performance. As far as I understand it, this is slow because we check file timestamps and remove files one at a time. Removing directories is faster than removing files so if there were some way that the disk cache could optimize this to remove directories.
Random ideas:
Persist the "oldest" timestamp and do a quick check in the beginning to just wipe the full directory. Downside: Must wipe entire cache.
Add layer(s) of inner directories grouped by some time interval. Then we can wipe huge chunks of the cache efficiently. The semantics of how this could work exactly need more looking into. Downside: Invalidates caches for existing users, and is complex.
The text was updated successfully, but these errors were encountered: