Allocate packetMeta up front to reduce number of allocations. (#1108)

This commit is contained in:
Raja Subramanian
2022-10-20 14:31:19 +05:30
committed by GitHub
parent 4344af6fd3
commit b9894ab014
3 changed files with 28 additions and 16 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ func Test_sequencer_getNACKSeqNo(t *testing.T) {
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
n := newSequencer(500, 0, logger.GetDefaultLogger())
n := newSequencer(5, 10, logger.GetDefaultLogger())
for _, i := range tt.fields.input {
n.push(i, i+tt.fields.offset, 123, 3)