From a78bed7976c3cf36b7e7b9c8fece8b1ad05998c5 Mon Sep 17 00:00:00 2001 From: Jian Xiao Date: Mon, 24 Jun 2024 22:58:29 +0000 Subject: [PATCH] memory --- encoding/serialization.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoding/serialization.go b/encoding/serialization.go index bccc58a786..9978e476a8 100644 --- a/encoding/serialization.go +++ b/encoding/serialization.go @@ -24,7 +24,7 @@ func (c *Frame) Deserialize(data []byte) (*Frame, error) { } func (c *Frame) SerializeGnark() ([]byte, error) { - coded := make([]byte, 0) + coded := make([]byte, 0, 32*(1+len(c.Coeffs))) // This is compressed format with just 32 bytes. proofBytes := c.Proof.Bytes() coded = append(coded, proofBytes[:]...)