optimisation: use graftTree to remember the export branch
Sped up git-annex export in repositories with lots of keys. Old method read whole git-annex branch tree into memory.
This commit is contained in:
parent
1580ff3866
commit
7af55de83c
3 changed files with 9 additions and 10 deletions
|
@ -124,7 +124,7 @@ recordExportBeginning remoteuuid newtree = do
|
|||
buildExportLog
|
||||
. changeMapLog c ep new
|
||||
. parseExportLog
|
||||
Annex.Branch.graftTreeish newtree (asTopFilePath "export.tree")
|
||||
Annex.Branch.rememberTreeish newtree (asTopFilePath "export.tree")
|
||||
|
||||
parseExportLog :: L.ByteString -> MapLog ExportParticipants Exported
|
||||
parseExportLog = parseMapLog exportParticipantsParser exportedParser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue