git-annex/Types
Joey Hess 69f8e6c7c0
ImportableContentsChunkable
This improves the borg special remote memory usage, by
letting it only load one archive's worth of filenames into memory at a
time, and building up a larger tree out of the chunks.

When a borg repository has many archives, git-annex could easily OOM
before. Now, it will use only memory proportional to the number of
annexed keys in an archive.

Minor implementation wart: Each new chunk re-opens the content
identifier database, and also a new vector clock is used for each chunk.
This is a minor innefficiency only; the use of continuations makes
it hard to avoid, although putting the database handle into a Reader
monad would be one way to fix it.

It may later be possible to extend the ImportableContentsChunkable
interface to remotes that are not third-party populated. However, that
would perhaps need an interface that does not use continuations.

The ImportableContentsChunkable interface currently does not allow
populating the top of the tree with anything other than subtrees. It
would be easy to extend it to allow putting files in that tree, but borg
doesn't need that so I left it out for now.

Sponsored-by: Noam Kremen on Patreon
2021-10-08 13:15:22 -04:00
..
ActionItem.hs simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
AdjustedBranch.hs
Availability.hs
Backend.hs refactor 2021-08-18 13:19:02 -04:00
Benchmark.hs
BranchState.hs
CatFileHandles.hs separate handles for cat-file and cat-file --batch-check 2021-09-24 13:16:13 -04:00
CleanupActions.hs
Command.hs
Concurrency.hs
Creds.hs
Crypto.hs
DeferredParse.hs
DesktopNotify.hs
Difference.hs
Distribution.hs
Export.hs convert ExportLocation to ShortByteString to avoid PINNED memory fragmentation 2021-10-05 14:51:55 -04:00
FileMatcher.hs
GitConfig.hs improved bwrate limiting implementation 2021-09-22 15:27:16 -04:00
Group.hs
Import.hs ImportableContentsChunkable 2021-10-08 13:15:22 -04:00
IndexFiles.hs
Key.hs minor optimisation 2021-10-05 21:26:11 -04:00
KeySource.hs
Link.hs
LockCache.hs
Messages.hs display scanning message whenever reconcileStaged has enough files to chew on 2021-06-08 12:48:30 -04:00
MetaData.hs
Mime.hs
NumCopies.hs
ProposedAccepted.hs
RefSpec.hs
Remote.hs ImportableContentsChunkable 2021-10-08 13:15:22 -04:00
RemoteConfig.hs
RemoteState.hs
RepoVersion.hs
ScheduledActivity.hs
StallDetection.hs bwlimit 2021-09-21 16:58:10 -04:00
StandardGroups.hs
StoreRetrieve.hs refactor 2021-08-18 13:19:02 -04:00
Test.hs
Transfer.hs
Transferrer.hs
TransferrerPool.hs
TrustLevel.hs
UrlContents.hs
UUID.hs simplify and speed up Utility.FileSystemEncoding 2021-08-11 12:13:31 -04:00
VectorClock.hs deal better with clock skew situations, using vector clocks 2021-08-04 12:33:46 -04:00
View.hs
WorkerPool.hs