git-annex/CmdLine
Joey Hess 11cc9f1933
info: Added calculation of combined annex size of all repositories
Factored out overLocationLogs from CmdLine.Seek, which can calculate this
pretty fast even in a large repo. In my big repo, the time to run git-annex
info went up from 1.33s to 8.5s.

Note that the "backend usage" stats are for annexed files in the working
tree only, not all annexed files. This new data source would let that be
changed, but that would be a confusing behavior change. And I cannot
retitle it either, out of fear something uses the current title (eg parsing
the json).

Also note that, while time says "402108maxresident" in my big repo now,
up from "54092maxresident", top shows the RES constant at 64mb, and it
was 48mb before. So I don't think there is a memory leak. I tried using
deepseq to force full evaluation of addKeyCopies and memory use didn't
change, which also says no memory leak. And indeed, not even calling
addKeyCopies resulted in the same memory use. Probably the increased memory
usage is buffering the stream of data from git in overLocationLogs.

Sponsored-by: Brett Eisenberg on Patreon
2023-11-08 13:35:11 -04:00
..
GitAnnex onlyingroup 2023-07-31 14:43:58 -04:00
GitAnnexShell uninit: Support --json and --json-error-messages 2023-05-11 13:43:02 -04:00
Action.hs Fix display when run with -J1 2023-06-15 10:07:54 -04:00
AnnexSetter.hs remove --backend from global options 2022-06-29 13:33:25 -04:00
Batch.hs avoid double RawFilePath conversion 2023-10-26 13:41:17 -04:00
GitAnnex.hs oldkeys: New command that lists the keys used by old versions of a file 2023-08-22 14:51:06 -04:00
GitAnnexShell.hs Override safe.bareRepository for git remotes 2023-09-07 14:56:26 -04:00
GitRemoteTorAnnex.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Option.hs initial implementation of --explain 2023-07-25 16:52:57 -04:00
Seek.hs info: Added calculation of combined annex size of all repositories 2023-11-08 13:35:11 -04:00
Usage.hs add FIELD?=GLOB to git-annex view usage 2023-02-07 18:09:10 -04:00