[cairo] scaling performance test of cairo library

Siarhei Siamashka siarhei.siamashka at gmail.com
Wed Feb 9 17:16:47 PST 2011


On Wednesday 09 February 2011 08:23:51 Siarhei Siamashka wrote:
> On Wednesday 09 February 2011 05:28:46 cooolheater wrote:
> > Thank you for your kind explanation.
> > I used pixman-0.21.4 for testing.
> > As you guessed, we are using SIMD and are finding method for NEON
> > acceleration.
> > Could you let me know the bilinear scaling interfaces in pixman and
> > where the SIMD optimization will be applied?
> 
> You can look here for the start:
> http://cgit.freedesktop.org/pixman/tree/pixman/pixman-bits-image.c?id=pixma
> n-0.21.4#n189
> 
> But applying optimizations locally just for this small function is not
> going to provide the best performance, it's kind of like swinging a
> large polearm in a narrow passage is not so effective.

And here is an example of such patch attached. Performance improvement is not
impressive at all. Who cares if it's now let's say ~15x slower than nearest
scaling instead of ~30x?

Obviously we need a better solution.

-- 
Best regards,
Siarhei Siamashka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-HACK-ARM-quick-tweak-to-add-NEON-optimizations-for-b.patch
Type: text/x-patch
Size: 3418 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110210/236cbbe1/attachment.bin>


More information about the cairo mailing list