wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r813037 - /incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/runtime/AbstractRuntimeContext.java
Date Wed, 09 Sep 2009 16:27:54 GMT
Author: bluk
Date: Wed Sep  9 16:27:54 2009
New Revision: 813037

URL: http://svn.apache.org/viewvc?rev=813037&view=rev
Log:
Init the HashMap in AbstractRuntimeContext to 32

The context usually has more than 16 items in it
so a resize is always done anyway.

See [WINK-173]

Modified:
    incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/runtime/AbstractRuntimeContext.java

Modified: incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/runtime/AbstractRuntimeContext.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/runtime/AbstractRuntimeContext.java?rev=813037&r1=813036&r2=813037&view=diff
==============================================================================
--- incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/runtime/AbstractRuntimeContext.java
(original)
+++ incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/runtime/AbstractRuntimeContext.java
Wed Sep  9 16:27:54 2009
@@ -36,7 +36,7 @@
     private HashMap<String, Object> attributes;
 
     public AbstractRuntimeContext() {
-        this.attributes = new HashMap<String, Object>();
+        this.attributes = new HashMap<String, Object>(32);
     }
 
     public final Map<String, Object> getAttributes() {



Mime
View raw message