<div class="gmail_quote">Oops, I went to sleep and forgot to send this e-mail... but prepare for something funny.</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Fri, Jul 29, 2011 at 5:45 PM, Lukast dev <span dir="ltr">&lt;<a href="mailto:lukast.dev@gmail.com" target="_blank">lukast.dev@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Use valgrind for your mentioned use case in which it is slow and<br>
attach the valgrind log.<br></blockquote><div><br></div><div>&lt;old e-mail&gt;</div><div>After over 15 minutes tracing lines in Krita, here are the Valgrind logs (~1 minute per line in Krita 2.4)</div><div><br></div><div>
I traced 15 diagonal lines in Krita 2.3 and Krita 2.4 in a 1200x1200 16-bit RGBA canvas.</div>
<div>I used a 5.7 px pixel brush.</div><div><br></div><div>callgrind.out.30414 = Krita 2.3</div><div>callgrind.out.30664 = Krita 2.4</div><div><br></div><div><a href="http://pentalis.org/Callgrind_Krita_2.3_vs_2.4.zip">http://pentalis.org/Callgrind_Krita_2.3_vs_2.4.zip</a></div>
<div>&lt;/old e-mail&gt;</div><div><br></div><div>Hhhm... I couldn&#39;t help but notice a huge amount of calls to debug classes in the 2.4 callgrind log. So I went and compiled it with the Release flag instead of Debug. _HUGE_ difference, huge. So huge that I feel silly even for writing this e-mail   =)    now Krita feels close to the same speed as 2.3.   (And then, after that, I saw DmitryK&#39;s e-mail warning me of the same, ugh, silly me).</div>
<div><br></div><div>So I&#39;ve been using the Debug build all this time, because I like to catch asserts and have full backtracks, now I think I should compile a KritaDevs build for that instead.</div><div>I&#39;m not sure if the steady decline in speed that I&#39;ve noticed in Debug means anything for Krita Release, because I used to paint with a Debug build just fine, and now it&#39;s almost unusable, but I&#39;m going to find out!.</div>
<div><br></div><div><br></div><div>Thanks everyone for your advice on profiling, those all were things I didn&#39;t know and I&#39;ll put them to good use.</div><div><br></div><div>Though, now that I have an actually usable Krita, I feel a huge itching need to paint... which I&#39;m going to sate now.</div>
<div><br></div><div>Best Regards,</div><div>(And my apologies for the silly mistake!).</div><div>~Pentalis.</div><div><br></div></div>