Home | History | Annotate | Download | only in finder

Lines Matching refs:Cache

58 // 7. The Finder searches the cache for files matching the user's query (using multiple threads)
68 // children (by reading them from the cache or by having received a response to ReadDir).
78 // Tests indicate that it only takes about 10% as long to search the in-memory cache as to
85 // Update versionString whenever making a backwards-incompatible change to the cache file format
89 // potentially added to the cache
108 // a cacheConfig stores the inputs that determine what should be included in the cache
114 // FilesystemView is set to ensure that a cache file copied to another host or
124 // a cacheMetadata stores version information about the cache
127 // If the version changes, the entire cache file must be regenerated
131 // If the CacheParams change, the Finder can choose how much of the cache file to reuse
212 return nil, fmt.Errorf("path %v was specified to be included in the cache but does not exist\n", path)
239 // to limit their search to a subset of the cache
279 // FindMatching is the most general exported function for searching for files in the cache
303 f.verbosef("No data for path %v ; apparently not included in cache params: %v\n",
310 f.verbosef("Finder finding %v using cache\n", rootPath)
320 f.verbosef("Found %v files under %v in %v using cache\n",
371 // loadFromFilesystem populates the in-memory cache based on the contents of the filesystem
422 // a PersistedDirInfo is the information about a dir that we save to our cache on disk
441 // a CacheEntry is the smallest unit that can be read and parsed from the cache (on disk) at a time
746 // validateCacheHeader reads the cache header from cacheReader and tells whether the cache is compatible with this Finder
786 // loadBytes compares the cache info in <data> to the state of the filesystem
834 // startFromExternalCache loads the cache database from disk
835 // startFromExternalCache waits to return until the load of the cache db is complete, but
841 // open cache file and validate its header
848 return errors.New("Cache header does not match")
1002 // startWithoutExternalCache starts scanning the filesystem according to the cache config
1036 f.verbosef("Scanned filesystem (not using cache) in %v\n", time.Now().Sub(startTime))
1063 // sortedDirEntries exports directory entries to facilitate dumping them to the external cache
1073 f.verbosef("Generated %v cache entries in %v\n", len(nodes), discoveryDate.Sub(startTime))
1079 f.verbosef("Sorted %v cache entries in %v\n", len(nodes), sortDate.Sub(discoveryDate))
1084 // serializeDb converts the cache database into a form to save to disk
1149 // dumpDb saves the cache database to disk
1191 // If a directory doesn't exist, that generally means the cache is out-of-date
1212 // discardErrsForPrunedPaths removes any errors for paths that are no longer included in the cache
1312 // pruneCacheCandidates removes the items that we don't want to include in our persistent cache
1430 // 1. we previously had a cache that knew about subdirectories of parentNode
1472 // findInCacheMultithreaded spawns potentially multiple goroutines with which to search the cache.
1512 // findInCacheSinglethreaded synchronously searches the cache for all matching file paths