diff options
author | Javi Fontan <jfontan@gmail.com> | 2018-01-16 11:48:12 +0000 |
---|---|---|
committer | Javi Fontan <jfontan@gmail.com> | 2018-01-16 11:48:12 +0000 |
commit | 5b1cde56bde4834805b14f1613e8f7fda1703bf8 (patch) | |
tree | c7a3a031684f56ccc9ca90f668a2ee1d356098b5 /plumbing/object/commit.go | |
parent | 4d43799bf111a66b204312c79f1d0dd0d96108b1 (diff) | |
download | go-git-5b1cde56bde4834805b14f1613e8f7fda1703bf8.tar.gz |
Modify cache to delete more than one item to free space
The previous version could only delete the oldest used object. If the
object to cache was bigger than the space freed it could not be added.
Also the decoder adds bases to the cache when they are needed.
This change increases the speed creating indexes 2x.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'plumbing/object/commit.go')
0 files changed, 0 insertions, 0 deletions