Оптимизация анализа состояния версий пакетов сапфор
This commit is contained in:
2025-04-03 19:08:17 +03:00
parent 98ec37233a
commit 419af0766e
14 changed files with 142 additions and 68 deletions

View File

@@ -242,14 +242,6 @@ public class SapforPackagesComparisonForm {
}
@Override
protected void body() throws Exception {
//теперь сравниваем задачи
System.out.println("serial comparison");
for (SapforTask task1 : package1.package_json.tasks) {
SapforTask task2 = package2.package_json.getTaskByKey(task1.getUniqueKey());
task1.checkMatch(task2);
}
System.out.println("DONE");
/*
ForkJoinPool commonPool = ForkJoinPool.commonPool();
System.out.println("parallel comparison");
commonPool.submit(() ->
@@ -259,7 +251,7 @@ public class SapforPackagesComparisonForm {
task1.checkMatch(task2);
})
).join();
*/
System.out.println("done");
package1.package_json.buildComparisonTree(package1);
package2.package_json.buildComparisonTree(package2);
}