diff options
author | Javi Fontan <jfontan@gmail.com> | 2018-08-22 16:46:50 +0200 |
---|---|---|
committer | Javi Fontan <jfontan@gmail.com> | 2018-08-22 16:53:21 +0200 |
commit | 790191ef92ec6382ce65cc30286c901863b3b7a3 (patch) | |
tree | d73393383d45b3769c1fb63903a6cf2b02b8d1aa /plumbing/cache/buffer_lru.go | |
parent | cdfa0bb8d987272b5729e565dbcc64f07963d77d (diff) | |
download | go-git-790191ef92ec6382ce65cc30286c901863b3b7a3.tar.gz |
plumbing, storage: add bases to the common cache
After clone only resolved deltas were added to the cache. This caused
slowdowns in small repositories where most objects can be held in cache.
It also makes packfiles reuse delta cache from the store. Previously it
created a new delta cache each time a packfile object was created. This
also slowed down a bit accessing objects and had an impact on memory
consumption when bases are added to the cache.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'plumbing/cache/buffer_lru.go')
0 files changed, 0 insertions, 0 deletions