On Tue, Nov 8, 2011 at 7:11 AM, David Fox <span dir="ltr"><<a href="mailto:ddssff@gmail.com">ddssff@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Nov 8, 2011 at 6:31 AM, Daniel Fischer<br>
<<a href="mailto:daniel.is.fischer@googlemail.com">daniel.is.fischer@googlemail.com</a>> wrote:<br>
> On the haskell-cafe as well as the beginners mailing lists, there<br>
> frequently (for some value of frequent) are posts where the author inquires<br>
> about a badly performing programme, in the form of stack overflows, space<br>
> leaks or slowness.<br>
><br>
> Often this is because they compiled their programme without optimisations,<br>
> simply recompiling with -O or -O2 yields a decently performing programme.<br>
><br>
> So I wonder, should ghc compile with -O1 by default?<br>
> What would be the downsides?<br>
<br>
</div>I think this is an excellent idea. Even better -O2.</blockquote><div><br></div><div>FWIW gcc defaults to -O0.</div><div><br></div></div>