-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipfs: always get from cache (rather than peek)
Previously we were peeking the cache to avoid inflating the hit counter in commonly seen sequences like `stat;stat;open`. However, it's not likely to be detrimental / cause unwanted evictions if calls to `stat` update the hit counter for a file. It may actually allow some paths to fall out of cache if they're merely being queried/monitored frequently, which is undesirable.
- Loading branch information
Showing
1 changed file
with
8 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters