From 03d32fa950234f41c93dda3b23bf3105d1fd3135 Mon Sep 17 00:00:00 2001 From: nesterfifa Date: Mon, 4 Dec 2023 17:29:56 +0100 Subject: [PATCH] [#782] locode: Increase number of CPUs Signed-off-by: nesterfifa --- pkg/util/locode/db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/locode/db/db.go b/pkg/util/locode/db/db.go index 8c71ea794..aea5caa59 100644 --- a/pkg/util/locode/db/db.go +++ b/pkg/util/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)