[Shootout-list] regexmatch ghc again

Jon Harrop jon@ffconsultancy.com
Sat, 21 May 2005 02:21:54 +0100


On Friday 20 May 2005 19:22, Einar Karttunen wrote:
> Jon Harrop <jon@ffconsultancy.com> writes:
> > Were you not having a problem with precomputation when you wrote that
> > e-mail?
>
> With regexpmatch. The problem is doing the same thing N times in a row.
> This is quite different from pidigits which does not cause problems.

Pidigits doesn't cause problems at the moment. Hopefully future compilers will 
be effective enough to optimise away the pidigits benchmark completely. Until 
then, I think it would be wise to design the benchmarks so that this will 
never be possible.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists