aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/.settings
diff options
context:
space:
mode:
authorLuca Milanesio <luca.milanesio@gmail.com>2022-12-20 21:50:19 +0000
committerLuca Milanesio <luca.milanesio@gmail.com>2023-01-31 17:14:09 -0500
commitad977f157242d4d6b5ea4c45b2aa0c15d20b58ae (patch)
tree41e6682c5e7fb9b9d48787a378628e0ca42fae4b /org.eclipse.jgit/.settings
parente4529cd39c42872e9b4f80d38659f9de37956634 (diff)
downloadjgit-ad977f157242d4d6b5ea4c45b2aa0c15d20b58ae.tar.gz
jgit-ad977f157242d4d6b5ea4c45b2aa0c15d20b58ae.zip
Allow the exclusions of refs prefixes from bitmap
When running a GC.repack() against a repository with over one thousands of refs/heads and tens of millions of ObjectIds, the calculation of all bitmaps associated with all the refs would result in an unreasonable big file that would take up to several hours to compute. Test scenario: repo with 2500 heads / 10M obj Intel Xeon E5-2680 2.5GHz Before this change: 20 mins After this change and 2300 heads excluded: 10 mins (90s for bitmap) Having such a large bitmap file is also slow in the runtime processing and have negligible or even negative benefits, because the time lost in reading and decompressing the bitmap in memory would not be compensated by the time saved by using it. It is key to preserve the bitmaps for those refs that are mostly used in clone/fetch and give the ability to exlude some refs prefixes that are known to be less frequently accessed, even though they may actually be actively written. Example: Gerrit sandbox branches may even be actively used and selected automatically because its commits are very recent, however, they may bloat the bitmap, making it ineffective. A mono-repo with tens of thousands of developers may have a relatively small number of active branches where the CI/CD jobs are continuously fetching/cloning the code. However, because Gerrit allows the use of sandbox branches, the total number of refs/heads may be even tens to hundred thousands. Change-Id: I466dcde69fa008e7f7785735c977f6e150e3b644 Signed-off-by: Luca Milanesio <luca.milanesio@gmail.com>
Diffstat (limited to 'org.eclipse.jgit/.settings')
0 files changed, 0 insertions, 0 deletions