Mercurial > dive4elements > gnv-client
changeset 100:f07637f96312
Some Performanceimprovement done
gnv-artifacts/trunk@147 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 28 Sep 2009 14:35:35 +0000 |
parents | bb45c5097cb6 |
children | e01c163ea5b0 |
files | gnv-artifacts/Changelog gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartFactory.java |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv-artifacts/Changelog Mon Sep 28 14:17:15 2009 +0000 +++ b/gnv-artifacts/Changelog Mon Sep 28 14:35:35 2009 +0000 @@ -1,3 +1,9 @@ +2009-09-28 Tim Englich <tim.englich@intevation.de> + + * src/main/java/de/intevation/gnv/chart/ChartFactory.java (createTimeSeries) Edited: + Performanceimprovement: The Loop will be interrupted if the Pointer is bigger than the + last Pointer of the Value that must be visualised. + 2009-09-28 Tim Englich <tim.englich@intevation.de> * pom.xml Edited:
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartFactory.java Mon Sep 28 14:17:15 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartFactory.java Mon Sep 28 14:35:35 2009 +0000 @@ -215,7 +215,7 @@ int lUpperCut, int lLowerCut,int pStart,int pEnd, Date dStart, Date dEnd) throws TechnicalChartException{ if (sDebug) sLogger.debug("createTimeSeries()"); - Result lRow0, lRow1, lRowVorEnd; + Result lRow0, lRow1; Date lDate=null, lDate0=null; @@ -274,6 +274,8 @@ } lRow0 = lRow1; lDate0 = lDate; + }else if (i > pEnd){ + return lTimeseries; } i++; }