Skip to content

Pack window memory limit, take 2

Brian Downing git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Don't try to delta if target is much smaller than sourcebuiltin-pack-objects.c+2 -00 replies
2/6Support fetching the memory usage of a delta indexdelta.h diff-delta.c+17 -00 replies
3/6Add functions for parsing integers with size suffixescache.h config.c+53 -112 replies
4/6Add pack-objects window memory usage limitbuiltin-pack-objects.c+43 -72 replies
5/6Add --window-memory option to git-repackgit-repack.sh+2 -10 replies
6/6Add documentation for --window-memory, pack.windowMemoryDocumentation/config.txt Documentation/git-pack-objects.txt Documentation/git-repack.txt+28 -00 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNicolas Pitre
SeriesA-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] Pack window memory limit, take 2

This series has my circular buffer errors (hopefully) corrected, and the code is a lot cleaner as a bonus. Also, the options are now named --window-memory and pack.windowMemory, and both can take {k,m,g} suffixes.

I split out the {k,m,g} parsing code from git_config_int into git_parse_long and git_parse_ulong, so it can be used for command-line arguments as well. Hopefully these will be useful elsewhere.

Finally the documentation has been cleaned up a bit and information on the defaults has been added.

Patches 1 and 2 are unmodified from last time.

[PATCH 1/6] Don't try to delta if target is much smaller than source [PATCH 2/6] Support fetching the memory usage of a delta index [PATCH 3/6] Add functions for parsing integers with size suffixes [PATCH 4/6] Add pack-objects window memory usage limit [PATCH 5/6] Add --window-memory option to git-repack [PATCH 6/6] Add documentation for --window-memory, pack.windowMemory

 Documentation/config.txt           |    6 +++
 Documentation/git-pack-objects.txt |   11 ++++++
 Documentation/git-repack.txt       |   11 ++++++
 builtin-pack-objects.c             |   52 ++++++++++++++++++++++++++----
 cache.h                            |    3 ++
 config.c                           |   61 +++++++++++++++++++++++++++++------
 delta.h                            |    7 ++++
 diff-delta.c                       |   10 ++++++
 git-repack.sh                      |    3 +-
 9 files changed, 145 insertions(+), 19 deletions(-)

-bcd