3 ms·
Pretty much every time I turn -XStrict on for some module I'm trying to optimize, performance gets worse. Laziness gets a lot of flak for being hard to reason
by whateveracct 6y ago
Pretty much every time I turn -XStrict on for some module I'm trying to optimize, performance gets worse.
Laziness gets a lot of flak for being hard to reason about. I disagree - it's just different.
But I never hear anyone acknowledge that laziness can bring compositional performance benefits no other language can sniff.
- jose_zap 6y agoThat’s because full laziness is actually an optimization strategy that Haskell uses to make programs faster. You are completely right about laziness being a big plus for composing functions.