Skip to content

Commit a2a1cab

Browse files
committed
updated README and result after upgrade to Go 1.16.4
1 parent 3284686 commit a2a1cab

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Example of words extracting in Go, Crystal, Rust and Python
55
Text source: 79.4MB in 30 files
66

77
- Python 3.9.5 (parallel) with sorting: 4.01s, without sorting: 2.47
8-
- Go 1.16.3 (parallel) with sorting: 7.55s, without sorting: 4.06s
8+
- Go 1.16.4 (parallel) with sorting: 7.32s, without sorting: 4.06s
99
- Python 3.9.5 with sorting: 10s, without sorting 8.32s
10-
- Go 1.16.3 with sorting: 21s, without sorting: 11s
10+
- Go 1.16.4 with sorting: 21s, without sorting: 11s
1111
- Rust 1.51.0 with sorting: 1m31s, without sorting: 1m10s
1212
- Crystal 1.0.0 with sorting: 2m55s, without sorting: 27s
1313

words_extractor_go/main.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ func main() {
2525
os.RemoveAll(outdir)
2626
os.Mkdir(outdir, 0777)
2727

28+
fmt.Println("Parsing...")
29+
2830
paths, _ := doublestar.Glob("../data/pl/**/*.yml")
2931
for i, path := range paths {
3032
wg.Add(1)
@@ -35,11 +37,6 @@ func main() {
3537

3638
func worker(id int, wg *sync.WaitGroup, path, outdir string, verbose bool) {
3739
defer wg.Done()
38-
39-
if verbose {
40-
fmt.Println("Parsing ", path)
41-
}
42-
4340
// load YAML file
4441
meta := GetYAML(path)
4542
outfilepath := fmt.Sprintf("%s/extracted-words-for-%s.txt", outdir, meta.Code)

0 commit comments

Comments
 (0)