(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
dariuszzbyrad 2020-09-11 02:59:37 +02:00 committed by GitHub
parent 913cfcaa4f
commit 58e3527bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -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) {