[Haskell-cafe] Substring replacements

Bulat Ziganshin bulatz at HotPOP.com
Fri Dec 23 03:32:01 EST 2005

Hello Branimir,

Wednesday, December 21, 2005, 10:18:43 AM, you wrote:

>>try to add
>>{-# NOINLINE replace #-}
>>to both programs and repeat comparision

BM> These are tests:
BM> No optimisations (no -O):

NOINLINE just prevents RunTimeCompilation (see wiki page for details),
so this way you will test speed of "replace" on previously unknown
string. disabling optimization says nothing about real speed of
optimized program, which searches for the many different strings

Best regards,
 Bulat                            mailto:bulatz at HotPOP.com

More information about the Haskell-Cafe mailing list