now try using it
This commit is contained in:
parent
41d2b32689
commit
33c7241209
@ -185,7 +185,11 @@ func main() {
|
||||
rand.Shuffle(len(items), func(i, j int) {
|
||||
items[i], items[j] = items[j], items[i]
|
||||
})
|
||||
sorted := mergeSort(items)
|
||||
qchan := make(chan *Question, len(items))
|
||||
go betterLoop(qchan)
|
||||
sorted := parallelMergeSort(qchan, items)
|
||||
close(qchan)
|
||||
|
||||
fmt.Println("Sorted. Saving...")
|
||||
obuf := bufio.NewWriter(ofile)
|
||||
for i, s := range sorted {
|
||||
|
Loading…
Reference in New Issue
Block a user