mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-17 00:47:03 +00:00
avoid unnecessary buffer zero:ing (#5178)
This commit is contained in:
parent
a1ddd447bc
commit
1bac029935
@ -720,7 +720,7 @@ proc uncompressFramedStream(conn: Connection,
|
||||
doAssert maxCompressedFrameDataLen >= maxUncompressedFrameDataLen.uint64
|
||||
|
||||
var
|
||||
frameData = newSeq[byte](maxCompressedFrameDataLen + 4)
|
||||
frameData = newSeqUninitialized[byte](maxCompressedFrameDataLen + 4)
|
||||
output = newSeqUninitialized[byte](expectedSize)
|
||||
written = 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user