mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-13 11:06:25 +05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user