Mercurial > jhg
changeset 265:3dd953c65619
Generous defaults for SparseSet not to fail on big manifests
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 19 Aug 2011 04:02:48 +0200 |
parents | 6bb5e7ed051a |
children | 0a2f445de774 |
files | src/org/tmatesoft/hg/util/SparseSet.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/util/SparseSet.java Fri Aug 19 03:36:25 2011 +0200 +++ b/src/org/tmatesoft/hg/util/SparseSet.java Fri Aug 19 04:02:48 2011 +0200 @@ -53,7 +53,7 @@ private static final int MASK_8BIT = 0xFF, MASK_7BIT = 0x7F, MASK_6BIT = 0x3F, MASK_5BIT = 0x1F, MASK_4BIT = 0x0F; private static final int I1_SHIFT = 15, I2_SHIFT = 6, I3_SHIFT = 0; // 6, 5, 5 - private static final int I1_MASK = MASK_5BIT, I2_MASK = MASK_4BIT, I3_MASK = MASK_4BIT; + private static final int I1_MASK = MASK_7BIT, I2_MASK = MASK_4BIT, I3_MASK = MASK_4BIT; private final int[] fixups = new int[] {0x1, 0x10, 0xA, 0xD, 0x1F }; // rehash attempts private final IndexBranch[] level2 = new IndexBranch[I1_MASK + 1];