WIP parallel sort (BROKEN)

This commit is contained in:
2024-11-11 23:08:01 +11:00
parent d850b9998d
commit d8a17ffd24
3 changed files with 144 additions and 7 deletions

View File

@ -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
}
}