Up load throttle to gomaxprocs.
authorTom Clegg <tom@tomclegg.ca>
Thu, 17 Jun 2021 15:15:32 +0000 (11:15 -0400)
committerTom Clegg <tom@tomclegg.ca>
Thu, 17 Jun 2021 15:15:32 +0000 (11:15 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

tilelib.go

index cc4e5c2a60dabb32b0e4afac9f0231f8bf67bea5..8b1933354fd88320df4d2c4e815eee589bb07512 100644 (file)
@@ -251,7 +251,7 @@ func (tilelib *tileLibrary) LoadDir(ctx context.Context, path string, onLoadGeno
        variantmap := map[tileLibRef]tileVariantID{}
        errs := make(chan error, len(files))
        log.Infof("LoadDir: read %d files", len(files))
-       throttle := throttle{Max: runtime.GOMAXPROCS(0)/2 + 1}
+       throttle := throttle{Max: runtime.GOMAXPROCS(0)}
        for _, path := range files {
                path := path
                go func() {