From fed899ed4a625d124a881a2da67430be5d15325c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 27 Mar 2024 14:36:01 +0100 Subject: pkg/rpctype: make RPC compression optional RPC compression take up to 10% of CPU time in profiles, but it's unlikely to be beneficial for local VM runs (we are mostly copying memory in this case). Enable RPC compression based on the VM type (local VM don't use it, remove machines use it). --- syz-hub/hub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syz-hub') diff --git a/syz-hub/hub.go b/syz-hub/hub.go index 187d4a1eb..f7e7e3e48 100644 --- a/syz-hub/hub.go +++ b/syz-hub/hub.go @@ -61,7 +61,7 @@ func main() { hub.initHTTP(cfg.HTTP) - s, err := rpctype.NewRPCServer(cfg.RPC, "Hub", hub) + s, err := rpctype.NewRPCServer(cfg.RPC, "Hub", hub, true) if err != nil { log.Fatalf("failed to create rpc server: %v", err) } -- cgit mrf-deployment