0
我看过http://www.haskell.org/ghc/docs/latest/html/libraries/base/src/GHC-IO-FD.html。它指出:我们可以更改我们自己的dEFAULT_FD_BUFFER_SIZE值吗?
-- We used to use System.Posix.Internals.dEFAULT_BUFFER_SIZE, which is
-- taken from the value of BUFSIZ on the current platform. This value
-- 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值吗?
8096是一个奇怪的大小。它是一个简单的错字,还是96字节的开销预期(但没有在该源文件的任何地方用注释调出)? – dave4420