logo       

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

lang.haskell.glasgow.bugs

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

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise