[#782] locode: Increase number of CPUs

Signed-off-by: nesterfifa <vemeyzer@gmail.com>
This commit is contained in:
Viktor Nesterenko 2023-12-04 17:29:56 +01:00
parent cc27dbcb78
commit 03d32fa950

View file

@ -80,7 +80,7 @@ func FillDatabase(table SourceTable, airports AirportDB, continents ContinentsDB
var errG errgroup.Group var errG errgroup.Group
// Pick some sane default, after this the performance stopped increasing. // 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 { _ = table.IterateAll(func(tableRecord locode.Record) error {
errG.Go(func() error { errG.Go(func() error {
return processTableRecord(tableRecord, airports, continents, names, db) return processTableRecord(tableRecord, airports, continents, names, db)