]> source.dussan.org Git - jgit.git/commit
Honor pack.windowlimit to cap memory usage during packing 16/1116/1
authorShawn O. Pearce <spearce@spearce.org>
Sat, 10 Jul 2010 01:32:33 +0000 (18:32 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 10 Jul 2010 02:19:07 +0000 (19:19 -0700)
commit97341949171dcdd7d6c30f3eef89ee2c63d8eb34
tree197341b6d5b7b0e19df70459f4ac4178ea60e272
parent74e08350129825c63c1b0c683b402241a844aabb
Honor pack.windowlimit to cap memory usage during packing

The pack.windowlimit configuration parameter places an upper bound
on the number of bytes used by the DeltaWindow class as it scans
through the object list.  If memory usage would exceed the limit
the window is temporarily decreased in size to keep memory used
within that bound.

Change-Id: I09521b8f335475d8aee6125826da8ba2e545060d
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaIndex.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaWindow.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java