Disabling multiprocessor support since benchmarks have shown a decrease of performance due to additional tasks management. To be reviewed in future Go versions when scheduler will be reconsidered

This commit is contained in:
DanB
2014-04-16 10:57:29 +02:00
parent f1b639b04e
commit 0236553c87

View File

@@ -25,7 +25,7 @@ import (
"log"
"net/rpc"
"os"
"runtime"
//"runtime"
"strconv"
"time"
@@ -287,7 +287,7 @@ func main() {
if *pidFile != "" {
writePid()
}
runtime.GOMAXPROCS(runtime.NumCPU())
// runtime.GOMAXPROCS(runtime.NumCPU()) // For now it slows down computing due to CPU management, to be reviewed in future Go releases
cfg, err = config.NewCGRConfigFromFile(cfgPath)
if err != nil {