HBASE-19684 BlockCacheKey toString Performance

Signed-off-by: zhangduo <zhangduo@apache.org>
This commit is contained in:
BELUGA BEHR 2018-01-08 17:06:21 +08:00 committed by zhangduo
parent 42c8b5bec5
commit fa07c211ac
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class BlockCacheKey implements HeapSize, java.io.Serializable {
@Override
public String toString() {
return String.format("%s_%d", hfileName, offset);
return this.hfileName + '_' + this.offset;
}
public static final long FIXED_OVERHEAD = ClassSize.align(