avoid sometimes expensive operations when annex.supportunlocked = false
authorJoey Hess <joeyh@joeyh.name>
Mon, 14 Jun 2021 16:36:55 +0000 (12:36 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 14 Jun 2021 16:40:41 +0000 (12:40 -0400)
commit014dc63a551dc8acd87e66be880dfd5b8baac441
treec366e51c46ebba070cbf724ae02840f9a4f6356c
parenta02b5c2904deff6e762c4caca3fe8b6be468ff67
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.
Annex/Content.hs
Annex/Ingest.hs
doc/bugs/significant_performance_regression_impacting_datal/comment_28_0d6a37f823cd9cb3ed1e6e90066ebd2c._comment [new file with mode: 0644]
doc/todo/move_readonly_values_to_AnnexRead.mdwn