Skip to content

Commit bdaffce

Browse files
ChristophBodensteinChristophBodenstein
authored andcommitted
less memory usage when reading from cache
1 parent 6d5151f commit bdaffce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

TimeNETOptimizationEnvironment/src/toe/simulation/SimulationCache.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,13 @@ public ArrayList<SimulationType> getListOfCompletedSimulationParsers(ArrayList<A
481481

482482
for (ArrayList<parameter> parameterSet : parameterSetList) {
483483
//Create Arraylist from array of parameters
484-
ArrayList<parameter> tmpParameterList = new ArrayList<parameter>();
484+
/*ArrayList<parameter> tmpParameterList = new ArrayList<parameter>();
485485
for (parameter myParameter : parameterSet) {
486486
tmpParameterList.add(myParameter);
487-
}
487+
}*/
488488
support.spinInLabel();
489489
//Get local simulation results
490-
ArrayList<MeasureType> listOfMeasureWithGivenParameters = this.getAllMeasuresWithParameterList(tmpParameterList);
490+
ArrayList<MeasureType> listOfMeasureWithGivenParameters = this.getAllMeasuresWithParameterList(parameterSet);
491491
//support.log("Size of ParameterList: "+ tmpParameterList.size() + " results in " +listOfMeasureWithGivenParameters.size()+ " Measurements.");
492492
//append if listSize is > 0
493493
if (listOfMeasureWithGivenParameters.size() > 0) {
@@ -502,7 +502,7 @@ public ArrayList<SimulationType> getListOfCompletedSimulationParsers(ArrayList<A
502502
simulationCounter++;
503503
}
504504
if (support.isCancelEverything()) {
505-
return null;
505+
return myParserList;
506506
}
507507
}
508508
if (myParserList.isEmpty()) {

0 commit comments

Comments
 (0)