It doesn't grow by the size of the input squared, it grows by a constant factor of the size of the input, the constant happens to be "2" instead of "1". Thus if I double the size of the input, I quadruple the runtime. It isn't quadratic unless when I quadruple the size of the input, it multiplies the time by 16 (4*4) -- currently it just multiplies it by 8 (2 * 4).<div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jul 6, 2012 at 1:36 AM, Jay Foad <span dir="ltr"><<a href="mailto:jay.foad@gmail.com" target="_blank">jay.foad@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 6 July 2012 09:28, Chandler Carruth <<a href="mailto:chandlerc@gmail.com">chandlerc@gmail.com</a>> wrote:<br>
> The performance which was previously quadratic is now roughly linear, but<br>
> it's a rather unfortunate linear: 2x. Every doubling of the input size<br>
> quadruples the compile time.<br>
<br>
</div>Then it's quadratic, not linear! Can you explain properly?<br>
<br>
Thanks,<br>
Jay.<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>