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/vm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm/vm_test.go') diff --git a/vm/vm_test.go b/vm/vm_test.go index 2a3f1171a..62b93f4c1 100644 --- a/vm/vm_test.go +++ b/vm/vm_test.go @@ -80,7 +80,7 @@ func init() { ctor := func(env *vmimpl.Env) (vmimpl.Pool, error) { return &testPool{}, nil } - vmimpl.Register("test", ctor, false) + vmimpl.Register("test", ctor, false, false) } type Test struct { -- cgit mrf-deployment