avoid sometimes expensive operations when annex.supportunlocked = false
This will mostly just avoid a DB lookup, so things get marginally faster. But in cases where there are many files using the same key, it can be a more significant speedup. Added overhead is one MVar lookup per call, which should be small enough, since this happens after transferring or ingesting a file, which is always a lot more work than that. It would be nice, though, to move getGitConfig to AnnexRead, which there is an open todo about.
This commit is contained in:
parent
a02b5c2904
commit
014dc63a55
4 changed files with 35 additions and 23 deletions
|
@ -0,0 +1,9 @@
|
|||
[[!comment format=mdwn
|
||||
username="joey"
|
||||
subject="""comment 28"""
|
||||
date="2021-06-14T16:31:26Z"
|
||||
content="""
|
||||
@Ilya sure can be skipped when annex.supportunlocked=false.
|
||||
I've implemented that. (And also for several other cases that have similar
|
||||
behavior, like dropping a key.)
|
||||
"""]]
|
Loading…
Add table
Add a link
Reference in a new issue