(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
|
@Override
|
||||||
public List<CandidateInfo> getCandidateStatus() {
|
public List<CandidateInfo> getCandidateStatus() {
|
||||||
List<CandidateInfo> list = new ArrayList<>(currentStatus.values());
|
return new ArrayList<>(currentStatus.values());
|
||||||
return list;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean terminate() {
|
private boolean terminate() {
|
||||||
|
|
|
@ -42,6 +42,7 @@ public class LeafUtils {
|
||||||
for (ParameterSpace q : unique) {
|
for (ParameterSpace q : unique) {
|
||||||
if (p == q) {
|
if (p == q) {
|
||||||
found = true;
|
found = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
|
|
Loading…
Reference in New Issue