WIP parallel sort (BROKEN)

This commit is contained in:
a_dinosaur committed 2025-07-06 17:03:24 +10:00
1 parent d850b9998d
commit d8a17ffd24
3 files changed
+144 -7

No files matched your search

@@ -22,11 +22,20 @@ struct DpkGraphCommand: AsyncParsableCommand {
fatalError(error.localizedDescription)
}
#if false
if var out = TextFileWriter(URL(filePath: "shallowIsolates.txt")) {
for node in graph.shallowIsolates { print(node, to: &out) }
}
if var out = TextFileWriter(URL(filePath: "deepIsolates.txt")) {
for node in graph.deepIsolates { print(node, to: &out) }
}
#else
do {
let sorted = try graph.parallelOrderSort()
print(sorted)
} catch {
fatalError(error.localizedDescription)
}
#endif
}
}