HBASE-20459 Majority of scan CPU time in HBase-1 spent in size estimation.
This commit is contained in:
parent
e60189035e
commit
6685b62abe
|
@ -141,7 +141,7 @@ public class ClassSize {
|
||||||
}
|
}
|
||||||
|
|
||||||
long sizeOf(byte[] b, int len) {
|
long sizeOf(byte[] b, int len) {
|
||||||
return align(arrayHeaderSize() + len);
|
return align(ARRAY + len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -186,7 +186,7 @@ public class ClassSize {
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("static-access")
|
@SuppressWarnings("static-access")
|
||||||
long sizeOf(byte[] b, int len) {
|
long sizeOf(byte[] b, int len) {
|
||||||
return align(arrayHeaderSize() + len * UnsafeAccess.theUnsafe.ARRAY_BYTE_INDEX_SCALE);
|
return align(ARRAY + len * UnsafeAccess.theUnsafe.ARRAY_BYTE_INDEX_SCALE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue