Generally strict Haskell means using strict data types - vectors, arrays, bytestrings, intmaps where required.<br><br>However, you usually don't want all code and data strict, all the time, since laziness/on-demand eval is critical for deferring non-essential work.<br>
<br>Summary; -fstrict wouldn't magically make your code good. Using the right balance of strict and lazy code, via the right choice of strict and lazy types, however, often does.<br><br>Id be interested to know what choices were made in your log file case led you into problems -- using something excessively lazy (like lazy lists) or something excessively strict (like strict bytestrings) would both be suboptimal for log analysis. A hybrid type like a lazy bytestring, would be more appropriate.<br>
<br>On Sunday, January 29, 2012, Marc Weber <<a href="mailto:marco-oweber@gmx.de">marco-oweber@gmx.de</a>> wrote:<br>> A lot of work has been gone into GHC and its libraries.<br>> However for some use cases C is still preferred, for obvious speed<br>
> reasons - because optimizing an Haskell application can take much time.<br>><br>> Is there any document describing why there is no ghc --strict flag<br>> making all code strict by default?<br>> Wouldn't this make it easier to apply Haskell to some additional fields<br>
> such as video processing etc?<br>><br>> Wouldn't such a '--strict' flag turn Haskell/GHC into a better C/gcc<br>> compiler?<br>><br>> Projects like this: <a href="https://github.com/thoughtpolice/strict-ghc-plugin">https://github.com/thoughtpolice/strict-ghc-plugin</a><br>
> show that the idea is not new.<br>><br>> Eg some time ago I had to do some logfile analysis. I ended doing it in<br>> PHP because optimizing the Haskell code took too much time.<br>><br>> Marc Weber<br>
><br>> _______________________________________________<br>> Haskell-Cafe mailing list<br>> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
>