-fobject-code faster? - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Chris Wendt

When I run GHCi with -fobject-code, reloads are MUCH faster, roughly ~10x faster than -fbyte-code (the default). This contradicts https://downloads.haskell.org/~ghc/7.4.1/docs/html/users_guide/ghci-obj.html which says "Compiling to object code takes longer". Any ideas what's going on?

Reed Mullanix

Compiling to object code inside GHCi is particularly useful if you are developing a compiled application, because the :reload command typically runs much faster than restarting GHC with --make from the command-line, because all the interface files are already cached in memory.