Re: [Haskell-cafe] Re: Haskell-Cafe Digest, Vol 39, Issue 6

2006-11-06 Thread Magnus Therning
On Sat, Nov 04, 2006 at 17:22:31 +0100, Lemmih wrote: [..] pseq is just as bad. The problem is excessive use of strictness annotations in the hope of a magical performance improvement. Strictness annotations should be used with care and only placed where they're needed. Premature annotations for

Re[2]: [Haskell-cafe] Re: Haskell-Cafe Digest, Vol 39, Issue 6

2006-11-06 Thread Bulat Ziganshin
Hello Magnus, Monday, November 6, 2006, 1:08:44 PM, you wrote: How do one find good places to use strictness annotations? (Is using a profiler the answer, just like it's the answer for manual optimisation in non-lazy languages?) the only way i know is to plug pray :) btw, a few weeks ago

[Haskell-cafe] Re: Haskell-Cafe Digest, Vol 39, Issue 6

2006-11-02 Thread Chad Scherrer
Lemmih wrote: Using 'seq' is generally a bad idea. It can worsen the performance if not used carefully and GHCs strictness analyser is usually good enough. Is GHC.Conc.pseq any better? Usually the whole point of making things more strict is to optimize performance for pieces you know will be