Skip to content

Commit 8191bf0

Browse files
committed
Minimal buffer 1 -> 20.
1 parent 7ff39b5 commit 8191bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/JsonStream/CLexer.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ parseResults (TempData {tmpNumbers=tmpNumbers, tmpBuffer=bs}) (err, hdr, rescoun
224224

225225
-- | Estimate number of elements in a chunk
226226
estResultLimit :: BS.ByteString -> CInt
227-
estResultLimit dta = fromIntegral $ 1 + BS.length dta `div` 5
227+
estResultLimit dta = fromIntegral $ 20 + BS.length dta `div` 5
228228

229229
getNextResult :: TempData -> TokenResult
230230
getNextResult tmp@(TempData {..})

0 commit comments

Comments
 (0)