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