You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2002/06/03 14:36:46 UTC
cvs commit: xml-cocoon2/src/java/org/apache/cocoon/caching PipelineCacheKey.java
cziegeler 2002/06/03 05:36:46
Modified: src/java/org/apache/cocoon/caching PipelineCacheKey.java
Log:
Performance Improvements
Submitted by: Volker Schmitt [volker.schmitt@basf-it-services.com]
Revision Changes Path
1.15 +10 -3 xml-cocoon2/src/java/org/apache/cocoon/caching/PipelineCacheKey.java
Index: PipelineCacheKey.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/caching/PipelineCacheKey.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- PipelineCacheKey.java 29 May 2002 08:20:25 -0000 1.14
+++ PipelineCacheKey.java 3 Jun 2002 12:36:46 -0000 1.15
@@ -58,7 +58,7 @@
* or more {@link ComponentCacheKey}s.
*
* @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
- * @version CVS $Id: PipelineCacheKey.java,v 1.14 2002/05/29 08:20:25 cziegeler Exp $
+ * @version CVS $Id: PipelineCacheKey.java,v 1.15 2002/06/03 12:36:46 cziegeler Exp $
*/
public final class PipelineCacheKey
implements java.io.Serializable {
@@ -73,7 +73,14 @@
* Constructor
*/
public PipelineCacheKey() {
- this.keys = new ArrayList(4);
+ this.keys = new ArrayList(6);
+ }
+
+ /**
+ * Constructor
+ */
+ public PipelineCacheKey(int size) {
+ this.keys = new ArrayList(size);
}
/**
@@ -139,7 +146,7 @@
* Clone the object (but not the component keys)
*/
public PipelineCacheKey copy() {
- PipelineCacheKey pck = new PipelineCacheKey();
+ PipelineCacheKey pck = new PipelineCacheKey(this.keys.size());
final int len = this.keys.size();
for(int i=0; i < len; i++) {
pck.keys.add(this.keys.get(i));
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org