mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-04 14:01:32 +00:00
WIP parallel sort (BROKEN)
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user