<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 16, 2013 at 8:42 PM, Albert Astals Cid <span dir="ltr"><<a href="mailto:aacid@kde.org" target="_blank">aacid@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">El Diumenge, 16 de juny de 2013, a les 20:29:37, Jaydeep Solanki va escriure:<br>
<div class="im">> Hello,<br>
> As I was finding it difficult to make progress using webkit to render epub,<br>
> I spent some time experimenting around with QTextDocument.<br>
> A small patch is attached which fixes the issues with the body tag (eg :<br>
> background color).<br>
><br>
> It works fine with me, the only issue I'm facing is that it gives a high<br>
> cpu usage, which leads to lag while scrolling fast.<br>
><br>
> I'm not getting the reason behind its high cpu usage.<br>
<br>
</div>Have you tried running it with callgrind option of valgrind + kcachegrind?<br></blockquote><div>Till now I didn't know anything about profiling, I'm glad you brought it up.<br><br></div><div>I looked at the stats, <br>
<ul><li>'okularGenerator_epub.so' collectively costs only 0.01 (self), that's also while loading the document.</li><li>impact of QTextDocument in 'libQtGui.so' is around 0.03 (self)</li><li>'libokularcore.so' which contains TextDocumentUtils collectively costs 0.68<br>
</li></ul></div>It doesn't appear to have a major impact.<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
  Albert<br>
<div class="im"><br>
><br>
> If you want me to create a review request, I'll do it.<br>
><br>
> Cheers,<br>
> Jaydeep<br>
</div>_______________________________________________<br>
Okular-devel mailing list<br>
<a href="mailto:Okular-devel@kde.org">Okular-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/okular-devel" target="_blank">https://mail.kde.org/mailman/listinfo/okular-devel</a><br>
</blockquote></div><br></div></div>