소스 검색

PackBitmapIndex: Set distance threshold

Setting the distance threshold to 2000 in PackWriterBitmapPreparer to
reduce memory usage in garbage collection. When the threshold is 0, GC
for the msm repository would use about 37 GB memory to complete. After
setting it to 2000, GC can finish in 75 min with about 10 GB memory.

Change-Id: I39783eeecbae58261c883735499e61ee1cac75fe
Signed-off-by: Yunjie Li <yunjieli@google.com>
tags/v5.8.0.202006091008-r
Yunjie Li 4 년 전
부모
커밋
913234e2ec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriterBitmapPreparer.java 파일 보기

@@ -58,7 +58,7 @@ class PackWriterBitmapPreparer {

private static final int DAY_IN_SECONDS = 24 * 60 * 60;

private static final int DISTANCE_THRESHOLD = 0;
private static final int DISTANCE_THRESHOLD = 2000;

private static final Comparator<RevCommit> ORDER_BY_REVERSE_TIMESTAMP = (
RevCommit a, RevCommit b) -> Integer

Loading…
취소
저장