Repository: hbase
Updated Branches:
  refs/heads/branch-2 1e352f624 -> c8e8f7008


HBASE-19684 BlockCacheKey toString Performance

Signed-off-by: zhangduo <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c8e8f700
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c8e8f700
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c8e8f700

Branch: refs/heads/branch-2
Commit: c8e8f7008d78aeb43435e00bf5eda26ecd9de714
Parents: 1e352f6
Author: BELUGA BEHR <[email protected]>
Authored: Mon Jan 8 17:06:21 2018 +0800
Committer: zhangduo <[email protected]>
Committed: Mon Jan 8 17:06:34 2018 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/c8e8f700/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java
----------------------------------------------------------------------
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java
index 66cf2bb..58d5c00 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/BlockCacheKey.java
@@ -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(

Reply via email to