diff options
author | Javi Fontan <jfontan@gmail.com> | 2018-08-25 19:17:45 +0200 |
---|---|---|
committer | Javi Fontan <jfontan@gmail.com> | 2018-08-25 19:23:50 +0200 |
commit | c7a4011d78a00bd93a2f82a39bb67c2dda5453f5 (patch) | |
tree | 35eea056efb5848a29788bff9c08fd18a0c6e139 /example_test.go | |
parent | 005d5dc961a7053d88da53536f4a5eb4c305529b (diff) | |
download | go-git-c7a4011d78a00bd93a2f82a39bb67c2dda5453f5.tar.gz |
storage/dotgit: search for incoming dir only once
Search for incoming object directory was done once each time objects
were accessed. This means a ReadDir of the objects path that is
expensive. Now incoming directory is searched the first time an object
is accessed and its name kept in DotGit to be reused.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Diffstat (limited to 'example_test.go')
0 files changed, 0 insertions, 0 deletions