Commit 4e2e9b73 authored by Niklas Hambüchen's avatar Niklas Hambüchen Committed by Ben Gamari
Browse files

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
parent 7938ef23
...@@ -121,7 +121,7 @@ instance GHC.IO.Device.IODevice FD where ...@@ -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 -- 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: -- on Linux. So let's just use a decent size on every platform:
dEFAULT_FD_BUFFER_SIZE :: Int dEFAULT_FD_BUFFER_SIZE :: Int
dEFAULT_FD_BUFFER_SIZE = 8096 dEFAULT_FD_BUFFER_SIZE = 8192
-- | @since 4.1.0.0 -- | @since 4.1.0.0
instance BufferedIO FD where instance BufferedIO FD where
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment