From 9f730a6680e4cf68b8c7f247b0017668282dd6ea Mon Sep 17 00:00:00 2001 From: Benoit Sigoure Date: Mon, 20 Feb 2012 13:38:49 -0800 Subject: [PATCH] Right-size the map when reading attributes. --- .../hbase/client/OperationWithAttributes.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/java/org/apache/hadoop/hbase/client/OperationWithAttributes.java b/src/main/java/org/apache/hadoop/hbase/client/OperationWithAttributes.java index a6b1fa2..698b31a 100644 --- a/src/main/java/org/apache/hadoop/hbase/client/OperationWithAttributes.java +++ b/src/main/java/org/apache/hadoop/hbase/client/OperationWithAttributes.java @@ -96,7 +96,7 @@ public abstract class OperationWithAttributes extends Operation implements Attri protected void readAttributes(final DataInput in) throws IOException { int numAttributes = in.readInt(); if (numAttributes > 0) { - this.attributes = new HashMap(); + this.attributes = new HashMap(numAttributes); for(int i=0; i