<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 11:31 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 Dilluns, 17 de juny de 2013, a les 21:42:23, Jaydeep Solanki va escriure:<br>
<div class="im">> On Sun, Jun 16, 2013 at 8:42 PM, Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>> wrote:<br>
> > El Diumenge, 16 de juny de 2013, a les 20:29:37, Jaydeep Solanki va<br>
> ><br>
> > escriure:<br>
> > > Hello,<br>
> > > As I was finding it difficult to make progress using webkit to render<br>
> ><br>
> > epub,<br>
> ><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>
> > Have you tried running it with callgrind option of valgrind + kcachegrind?<br>
><br>
> Till now I didn't know anything about profiling, I'm glad you brought it up.<br>
><br>
> I looked at the stats,<br>
><br>
>    - 'okularGenerator_epub.so' collectively costs only 0.01 (self), that's<br>
>    also while loading the document.<br>
</div>>    - impact of QTextDocument in 'libQtGui.so' is around 0.03 (self)<br>
>    - 'libokularcore.so' which contains TextDocumentUtils collectively costs<br>
<div class="im">>    0.68<br>
><br>
> It doesn't appear to have a major impact.<br>
<br>
</div>When you say high cpu usage you mean that top gives you high numbers? Or you<br>
are saying high cpu usage because it lags?<br></blockquote><div style>When scrolling quickly, the core on which Okular is running hits 100% usage (stats obtained using System Monitor).</div><div style>+ it lags.</div><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="HOEnZb"><div class="h5"><br>
><br>
> > Cheers,<br>
> ><br>
> >   Albert<br>
> ><br>
> > > If you want me to create a review request, I'll do it.<br>
> > ><br>
> > > Cheers,<br>
> > > Jaydeep<br>
> ><br>
> > _______________________________________________<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>
_______________________________________________<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>
</div></div></blockquote></div><br></div></div>