runghc extremely slow when output redirected to file on NFS
|Reported by:||greenrd@…||Owned by:|
|Operating System:||Linux||Architecture:||x86_64 (amd64)|
|Type of failure:||Test Case:|
|Related Tickets:||Differential Rev(s):|
When I compile my program using ghc and run the generated executable, the compilation is slow but the executable is very fast. When I run the program using runghc, it's extremely slow if I redirect the output to a file on NFS - but it's not using lots of CPU, it just sits there.
My best guess is that runghc turns off output buffering entirely and outputs one character at a time - which murders NFS performance, so I'm told.