Skip to content

Commit 3aa4842

Browse files
committed
Another experiment
1 parent 7169f09 commit 3aa4842

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/me/lemire/integercompression/FastPFOR.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ public final class FastPFOR implements IntegerCODEC,SkippableIntegerCODEC {
4848
*/
4949
public final static int DEFAULT_BLOCK_SIZE = 256;
5050

51-
int blockSize;
52-
int pageSize;
51+
final int blockSize = DEFAULT_BLOCK_SIZE;
52+
final int pageSize;
5353
final int[][] dataTobePacked = new int[33][];
5454
final ByteBuffer byteContainer;
5555

5656
// Working area for compress and uncompress.
5757
int[] dataPointers;
5858
int[] freqs;
59-
int[] bestbbestcexceptmaxb = new int[3];
59+
final int[] bestbbestcexceptmaxb = new int[3];
6060

6161
/**
6262
* Construct the FastPFOR CODEC.
@@ -68,7 +68,7 @@ public final class FastPFOR implements IntegerCODEC,SkippableIntegerCODEC {
6868
public FastPFOR(int BlockSize, int pagesize) {
6969
if((BlockSize != 128) && (BlockSize != 256))
7070
throw new IllegalArgumentException(" block size should be 128 or 256");
71-
blockSize = BlockSize;
71+
//blockSize = BlockSize;
7272
pageSize = pagesize;
7373
// Initiate arrrays.
7474
byteContainer = ByteBuffer.allocateDirect(3 * pageSize

0 commit comments

Comments
 (0)