[Haskell-cafe] How To Make It Faster?

Ketil Malde ketil at malde.org
Wed Jun 10 05:38:31 EDT 2009

Diego Souza <dsouza at bitforest.org> writes:

> I'd like to make it run faster, if possible. What should I do to
> identify the bottlenecks and once I find them, a few guidelines to
> actually fix them.

The usual approach is to compile with profiling (ghc -prof -auto-all,
don't forget to optimize!), and run with time profiling enabled
(./my-program -my-options +RTS -p).  You can then examine the
resulting profiling output (my-program.prof) to identify hotspots, and
try to improve them.

If I haven't seen further, it is by standing in the footprints of giants

More information about the Haskell-Cafe mailing list