Skip to content

Commit 2642f60

Browse files
author
Ruben Bridgewater
committed
Fix bulk string offset cache
This improves bulk strings with multiple chunks significantly
1 parent 304ca09 commit 2642f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function parseBulkString (parser) {
135135
if (offsetEnd + 2 > parser.buffer.length) {
136136
parser.bufferCache.push(parser.buffer)
137137
parser.totalChunkSize = parser.buffer.length
138-
parser.bigStrSize = length + 2
138+
parser.bigStrSize = offsetEnd + 2
139139
return
140140
}
141141

0 commit comments

Comments
 (0)