changeset 1885:110dd067bb8f

StableXYDifferenceRenderer: More efficient use of TDoubleArrayList flys-artifacts/trunk@3244 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 13 Nov 2011 15:11:23 +0000
parents 4ae9c92feb8c
children 6f047a407f84
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Sun Nov 13 14:02:35 2011 +0000
+++ b/flys-artifacts/ChangeLog	Sun Nov 13 15:11:23 2011 +0000
@@ -1,3 +1,8 @@
+2011-11-13	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java:
+	  s/reset/resetQuick/s in TDoubleArrayLists.
+
 2011-11-13	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/charts/CrossSectionApp.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java	Sun Nov 13 14:02:35 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java	Sun Nov 13 15:11:23 2011 +0000
@@ -396,8 +396,8 @@
                     DefaultXYDataset ds = new DefaultXYDataset();
                     addSeries(ds, dataset.getSeriesKey(0), xs, ys);
                     datasets.add(ds);
-                    xs.reset();
-                    ys.reset();
+                    xs.resetQuick();
+                    ys.resetQuick();
                 }
             }
             else {
@@ -591,8 +591,8 @@
                 datasets.add(ds);
             }
 
-            six.reset(); siy.reset();
-            sjx.reset(); sjy.reset();
+            six.resetQuick(); siy.resetQuick();
+            sjx.resetQuick(); sjy.resetQuick();
 
             // Push split points.
             if (!Double.isNaN(pushxi)) {

http://dive4elements.wald.intevation.org