hbase-8183. performance.xml. Fixed typo introduced in hbase-8180.

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1459945 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug Meil 2013-03-22 19:32:35 +00:00
parent c36d3069e4
commit 4c9177de9e
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ Result r = htable.get(get);
byte[] b = r.getValue(Bytes.toBytes("cf"), Bytes.toBytes("attr")); // returns current version of value
</programlisting>
But especially when inside loops (and MapReduce jobs), converting the columnFamily and column-names
to byte-arrays repeatedly is surprsingly expensive.
to byte-arrays repeatedly is surprisingly expensive.
It's better to use constants for the byte-arrays, like this:
<programlisting>
public static final byte[] CF = "cf".getBytes();