From f99cc90185e2993d42fc7dc49412e8e30f186eff Mon Sep 17 00:00:00 2001 From: George Bartolomey Date: Sun, 15 Sep 2024 12:01:53 +0300 Subject: [PATCH] [#14] locode_generate: Increase number of CPUs Signed-off-by: George Bartolomey --- pkg/locode/db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/locode/db/db.go b/pkg/locode/db/db.go index a4a09d1..90b19ed 100644 --- a/pkg/locode/db/db.go +++ b/pkg/locode/db/db.go @@ -80,7 +80,7 @@ func FillDatabase(table SourceTable, airports AirportDB, continents ContinentsDB var errG errgroup.Group // Pick some sane default, after this the performance stopped increasing. - errG.SetLimit(runtime.NumCPU() * 4) + errG.SetLimit(runtime.NumCPU() * 16) _ = table.IterateAll(func(tableRecord locode.Record) error { errG.Go(func() error { return processTableRecord(tableRecord, airports, continents, names, db)