(arbiter-core) Made some performance and memory improvement (#9085)
* Inline variables Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com> * Marked some classes as static Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com> * Improve computational complexity Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com> * Revert last changes Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>master
parent
913cfcaa4f
commit
58e3527bf6
|
@ -330,8 +330,7 @@ public abstract class BaseOptimizationRunner implements IOptimizationRunner {
|
|||
|
||||
@Override
|
||||
public List<CandidateInfo> getCandidateStatus() {
|
||||
List<CandidateInfo> list = new ArrayList<>(currentStatus.values());
|
||||
return list;
|
||||
return new ArrayList<>(currentStatus.values());
|
||||
}
|
||||
|
||||
private boolean terminate() {
|
||||
|
|
|
@ -42,6 +42,7 @@ public class LeafUtils {
|
|||
for (ParameterSpace q : unique) {
|
||||
if (p == q) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!found) {
|
||||
|
|
Loading…
Reference in New Issue