From 68021b910acb53d6dad9779153a18aff352078ac Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Fri, 2 Jun 2023 17:25:15 +0300 Subject: [PATCH] [#38] 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 c2fa855..f9b003d 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 type buffer struct { data []byte