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). --- vm/vmware/vmware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm/vmware') diff --git a/vm/vmware/vmware.go b/vm/vmware/vmware.go index 4c05bac12..6bccbaa6e 100644 --- a/vm/vmware/vmware.go +++ b/vm/vmware/vmware.go @@ -22,7 +22,7 @@ import ( ) func init() { - vmimpl.Register("vmware", ctor, false) + vmimpl.Register("vmware", ctor, false, false) } type Config struct { -- cgit mrf-deployment