[commit: ghc] master: Fix: Default FD buffer size is not a power of 2 (#13245) (4e2e9b7)
git at git.haskell.org
git at git.haskell.org
Sun Feb 12 01:09:10 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/4e2e9b7324e253295613fe868a281e1801e05d10/ghc
>---------------------------------------------------------------
commit 4e2e9b7324e253295613fe868a281e1801e05d10
Author: Niklas Hambüchen <mail at nh2.me>
Date: Sat Feb 11 19:23:37 2017 -0500
Fix: Default FD buffer size is not a power of 2 (#13245)
Reviewers: simonmar, austin, hvr, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D3115
>---------------------------------------------------------------
4e2e9b7324e253295613fe868a281e1801e05d10
libraries/base/GHC/IO/FD.hs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libraries/base/GHC/IO/FD.hs b/libraries/base/GHC/IO/FD.hs
index 82ba628..c4e4d46 100644
--- a/libraries/base/GHC/IO/FD.hs
+++ b/libraries/base/GHC/IO/FD.hs
@@ -121,7 +121,7 @@ instance GHC.IO.Device.IODevice FD where
-- varies too much though: it is 512 on Windows, 1024 on OS X and 8192
-- on Linux. So let's just use a decent size on every platform:
dEFAULT_FD_BUFFER_SIZE :: Int
-dEFAULT_FD_BUFFER_SIZE = 8096
+dEFAULT_FD_BUFFER_SIZE = 8192
-- | @since 4.1.0.0
instance BufferedIO FD where
More information about the ghc-commits
mailing list