Re: [Haskell-cafe] monadic performance

2006-10-30 Thread Chad Scherrer
On 10/28/06, Tomasz Zielonka [EMAIL PROTECTED] wrote: On Fri, Oct 27, 2006 at 06:28:58AM -0700, Chad Scherrer wrote: Should I expect a monadic version to take a performance hit? What if I use some SPECIALIZE pragmas or somesuch? Is it more efficient to write one from scratch, or do specific

[Haskell-cafe] monadic performance

2006-10-27 Thread Chad Scherrer
Hello, I've written some code that does a foldl (or scanl, depending on my mood) kind of thing, and builds a huge tree structure as it goes along. I've been careful to make inserts as strict (and eager) as possible, since I know all the pieces will be evaluated eventually anyway. Now I'd like to