aboutsummaryrefslogtreecommitdiffstats
path: root/example_test.go
diff options
context:
space:
mode:
authorJavi Fontan <jfontan@gmail.com>2018-08-25 19:17:45 +0200
committerJavi Fontan <jfontan@gmail.com>2018-08-25 19:23:50 +0200
commitc7a4011d78a00bd93a2f82a39bb67c2dda5453f5 (patch)
tree35eea056efb5848a29788bff9c08fd18a0c6e139 /example_test.go
parent005d5dc961a7053d88da53536f4a5eb4c305529b (diff)
downloadgo-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