From 4cb0068ddef024d65e486379a688a824e153173c Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Fri, 2 Jun 2023 17:15:54 +0300 Subject: [PATCH] [#37] signature: Increase pool max object size According to the results of profiling, objects with a size of 72KB are mainly allocated. Signed-off-by: Dmitrii Stepanov --- util/signature/buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/signature/buffer.go b/util/signature/buffer.go index 2a7f1e0..1df7eca 100644 --- a/util/signature/buffer.go +++ b/util/signature/buffer.go @@ -2,7 +2,7 @@ package signature import "sync" -const poolSliceMaxSize = 64 * 1024 +const poolSliceMaxSize = 128 * 1024 var buffersPool = sync.Pool{ New: func() any {