On Tue, Nov 8, 2011 at 7:11 AM, David Fox <span dir="ltr">&lt;<a href="mailto:ddssff@gmail.com">ddssff@gmail.com</a>&gt;</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>
&lt;<a href="mailto:daniel.is.fischer@googlemail.com">daniel.is.fischer@googlemail.com</a>&gt; wrote:<br>
&gt; On the haskell-cafe as well as the beginners mailing lists, there<br>
&gt; frequently (for some value of frequent) are posts where the author inquires<br>
&gt; about a badly performing programme, in the form of stack overflows, space<br>
&gt; leaks or slowness.<br>
&gt;<br>
&gt; Often this is because they compiled their programme without optimisations,<br>
&gt; simply recompiling with -O or -O2 yields a decently performing programme.<br>
&gt;<br>
&gt; So I wonder, should ghc compile with -O1 by default?<br>
&gt; 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>