on master help sign in
Fix incorrect comments for 'defaultChunkSize' and 'smallChunkSize'.
fdd934cJohn Millikin
Data/Text/Lazy/Internal.hs+2−2
@@ -87,12 +87,12 @@ foldlChunks f z = go z
87 go !a (Chunk c cs) = go (f a c) cs
87 go !a (Chunk c cs) = go (f a c) cs
88{-# INLINE foldlChunks #-}
88{-# INLINE foldlChunks #-}
89
89
90−-- | Currently set to 32KB, less the memory management overhead.
90+-- | Currently set to 16 KiB, less the memory management overhead.
91defaultChunkSize :: Int
91defaultChunkSize :: Int
92defaultChunkSize = 16384 - chunkOverhead
92defaultChunkSize = 16384 - chunkOverhead
93{-# INLINE defaultChunkSize #-}
93{-# INLINE defaultChunkSize #-}
94
94
95−-- | Currently set to 256 bytes, less the memory management overhead.
95+-- | Currently set to 128 bytes, less the memory management overhead.
96smallChunkSize :: Int
96smallChunkSize :: Int
97smallChunkSize = 128 - chunkOverhead
97smallChunkSize = 128 - chunkOverhead
98{-# INLINE smallChunkSize #-}
98{-# INLINE smallChunkSize #-}