Skip to content

Commit

Permalink
parallel dict sort
Browse files Browse the repository at this point in the history
  • Loading branch information
arysin committed Mar 1, 2024
1 parent 63fa2c5 commit f99ea31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/groovy/org/dict_uk/tools/Sort.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package org.dict_uk.tools
import java.nio.file.Files
import java.nio.file.Paths
import java.nio.file.StandardCopyOption;
import java.util.stream.Stream

import org.dict_uk.common.UkDictComparator

class Sort {

static main(args) {
args.each { filename ->
Stream.of(args).parallel().each { filename ->
println "Sorting $filename..."
sortFile(filename)
}
Expand Down

0 comments on commit f99ea31

Please sign in to comment.