[GHC] #7418: Writing to stderr is 7x slower than writing to stdout
GHC
cvs-ghc at haskell.org
Thu Nov 15 19:51:12 CET 2012
#7418: Writing to stderr is 7x slower than writing to stdout
------------------------------------+---------------------------------------
Reporter: SimonHengel | Owner:
Type: bug | Status: new
Priority: normal | Component: Runtime System
Version: 7.6.1 | Keywords:
Os: Linux | Architecture: x86_64 (amd64)
Failure: Runtime performance bug | Blockedby:
Blocking: | Related:
------------------------------------+---------------------------------------
Comment(by parcs):
By default `stdout` is buffered and `stderr` is not. If you do
`hSetBuffering stderr LineBuffering` in the second program then it's just
as fast as the first program.
QuickCheck should probably be patched to enable buffering on `stderr`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7418#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list