aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/cache/object_lru.go
Commit message (Collapse)AuthorAgeFilesLines
* Enforce the use of cache in packfile decoderJavi Fontan2017-12-201-0/+5
| | | | | | | | | | | | | | | | | Decoder object can make use of an object cache to speed up processing. Previously the only way to specify it was changing manually the struct generated by NewDecodeForFile. This lead to some instances to be created without it and penalized performance. Now the cache should be explicitly passed to the constructor function. NewDecoder now creates objects with a cache using the default size. A new helper function was added to create cache objects with the default size as this becomes a common task now: cache.NewObjectLRUDefault() Signed-off-by: Javi Fontan <jfontan@gmail.com>
* fix race condition on ObjectLRUMiguel Molina2017-08-111-0/+11
| | | | Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
* plumbing/cache: change FIFO to LRU cacheSantiago M. Mola2017-07-271-0/+84