[commit: bytestring] master: Update docs for chunk size constants (1a86963)
Ian Lynagh
igloo at earth.li
Wed Feb 22 21:58:12 CET 2012
Repository : ssh://darcs.haskell.org//srv/darcs/packages/bytestring
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/1a86963f321017c93c4366949b799a2dfcd1190e
>---------------------------------------------------------------
commit 1a86963f321017c93c4366949b799a2dfcd1190e
Author: Duncan Coutts <duncan at community.haskell.org>
Date: Sun Nov 13 16:26:12 2011 +0000
Update docs for chunk size constants
>---------------------------------------------------------------
Data/ByteString/Lazy/Internal.hs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Data/ByteString/Lazy/Internal.hs b/Data/ByteString/Lazy/Internal.hs
index 5b9e5fb..2888235 100644
--- a/Data/ByteString/Lazy/Internal.hs
+++ b/Data/ByteString/Lazy/Internal.hs
@@ -198,12 +198,12 @@ foldlChunks f z = go z
-- The following value assumes people have something greater than 128k,
-- and need to share the cache with other programs.
--- | Currently set to 32k, less the memory management overhead
+-- | The chunk size used for I\/O. Currently set to 32k, less the memory management overhead
defaultChunkSize :: Int
defaultChunkSize = 32 * k - chunkOverhead
where k = 1024
--- | Currently set to 4k, less the memory management overhead
+-- | The recommended chunk size. Currently set to 4k, less the memory management overhead
smallChunkSize :: Int
smallChunkSize = 4 * k - chunkOverhead
where k = 1024
More information about the Cvs-libraries
mailing list