[GHC] #638: Patch to make Control.Monad.replicateM_ faster

Tomasz Zielonka tomasz.zielonka at gmail.com
Sat Dec 17 11:29:36 EST 2005


On Sat, Dec 17, 2005 at 05:26:33PM +0100, Tomasz Zielonka wrote:
> Are you sure it is really more efficient?
> 
> I remember that I was amazed that GHC compiled my
> (sequence_ $ repeat $ ...) code to a really tight loop
> with no allocations.

Hmmm... perhaps "no allocations" is not surprising with repeat, which
simply creates a self-referring list, but still AFAIR the generated code
did not create lists at all.

Best regards
Tomasz

-- 
I am searching for a programmer who is good at least in some of
[Haskell, ML, C++, Linux, FreeBSD, math] for work in Warsaw, Poland



More information about the Glasgow-haskell-bugs mailing list