jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1436289 - /jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
Date Mon, 21 Jan 2013 11:34:50 GMT
Author: pmouawad
Date: Mon Jan 21 11:34:50 2013
New Revision: 1436289

URL: http://svn.apache.org/viewvc?rev=1436289&view=rev
Log:
Set capacity of HashSet to reduce memory usage

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java?rev=1436289&r1=1436288&r2=1436289&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java Mon Jan 21 11:34:50
2013
@@ -164,7 +164,10 @@ public class SampleResult implements Ser
 
     //@GuardedBy("this"")
     /** files that this sample has been saved in */
-    private final Set<String> files = new HashSet<String>();
+    /** In Non GUI mode and when best config is used, size never exceeds 1, 
+     * but as a compromise set it to 3 
+     */
+    private final Set<String> files = new HashSet<String>(3);
 
     private String dataEncoding;// (is this really the character set?) e.g.
                                 // ISO-8895-1, UTF-8



Mime
View raw message