On Wed, Jul 23, 2008 at 11:10 AM, Corey O'Connor <[EMAIL PROTECTED]> wrote:
> I still have two questions after all this:
>  - Can I get a Haskell implementation as fast as the Perl?
>  - What do I need to do to get GHC's profiler to provide me usable
> information? Telling me that 98% of the time was in "main" is not very
> enlightening ;-)

Don did a great job answering teh first question. To get better
profiling information, add "SCC" annotations to your code. That will
tell you how much time is spent in a particular expression. For your
main function, take a divide and conquer approach - add SCCs to
determine what is taking the most time.

Take Don's advice first though before benchmarking - you probably
won't care after switching to bytestring & a better regex engine.

Justin
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to