Improve memory use of --all when using annex.private
authorJoey Hess <joeyh@joeyh.name>
Tue, 24 Oct 2023 17:06:54 +0000 (13:06 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 24 Oct 2023 17:20:55 +0000 (13:20 -0400)
commit0da1d40cd453a3611340793f05186d4e7266d35a
tree65b20e70b8df9f7bb82f5825eecf7796eaf57663
parent18f902efa9c53ffd75a16e25cc666334b1029ea8
Improve memory use of --all when using annex.private

This does not improve Annex.Branch.files at all, since it still uses ++ to
combine the lists, so forcing all but the last one.

But when there are a lot of files in the private journal, it does avoid
--all (or a bare repo) from buffering the filenames in memory.

See commit 653b7194727a27dfd185cdb0b752f8e190250fc4 for prior discussion of
this buffering.

Sponsored-by: Graham Spencer on Patreon
Annex/Branch.hs
CHANGELOG
doc/todo/improve_memory_usage_of_--all.mdwn