<div>I also tested for text, and the result was unaccountable.</div>
<div> </div>
<div>I couldn&#39;t find the method for scaling text in skia canvas, </div>
<div>so I compared between cairo and skia with differentiating fontsize and text length,</div>
<div>then the result was the skia is about 10 times faster than cairo in drawing text.</div>
<div> </div>
<div>I think the test was wrong, but I can&#39;t find the wrong point.</div>
<div>I compared the execution time between SkCanvas::drawText and cairo_show_text.</div>
<div> </div>
<div>If cairo_show_text is really so slower than similar function in skia, what can I do for getting a faster execution time in cairo? </div>
<div>Using the cairo_show_glyphs can be better?</div>
<div><br> </div>
<div class="gmail_quote">On Thu, Feb 10, 2011 at 10:16 AM, Siarhei Siamashka <span dir="ltr">&lt;<a href="mailto:siarhei.siamashka@gmail.com">siarhei.siamashka@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Wednesday 09 February 2011 08:23:51 Siarhei Siamashka wrote:<br>&gt; On Wednesday 09 February 2011 05:28:46 cooolheater wrote:<br>&gt; &gt; Thank you for your kind explanation.<br>&gt; &gt; I used pixman-0.21.4 for testing.<br>
&gt; &gt; As you guessed, we are using SIMD and are finding method for NEON<br>&gt; &gt; acceleration.<br>&gt; &gt; Could you let me know the bilinear scaling interfaces in pixman and<br>&gt; &gt; where the SIMD optimization will be applied?<br>
&gt;<br>&gt; You can look here for the start:<br>&gt; <a href="http://cgit.freedesktop.org/pixman/tree/pixman/pixman-bits-image.c?id=pixma" target="_blank">http://cgit.freedesktop.org/pixman/tree/pixman/pixman-bits-image.c?id=pixma</a><br>
&gt; n-0.21.4#n189<br>&gt;<br>&gt; But applying optimizations locally just for this small function is not<br>&gt; going to provide the best performance, it&#39;s kind of like swinging a<br>&gt; large polearm in a narrow passage is not so effective.<br>
<br></div>And here is an example of such patch attached. Performance improvement is not<br>impressive at all. Who cares if it&#39;s now let&#39;s say ~15x slower than nearest<br>scaling instead of ~30x?<br><br>Obviously we need a better solution.<br>
<br>--<br>Best regards,<br><font color="#888888">Siarhei Siamashka<br></font></blockquote></div><br>