[Sugar-devel] SVG performance
Jonas Smedegaard
dr at jones.dk
Mon Dec 8 21:02:22 EST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, Dec 08, 2008 at 08:12:17PM -0500, Bernie Innocenti wrote:
>Sascha Silbe wrote:
>> On Mon, Dec 08, 2008 at 07:51:54AM -0500, Walter Bender wrote:
>>
>>> I think the solution may be as simple as going back to GIF files.
>> Please don't. Using vector graphics helps scaling Sugar to non-XO
>> devices.
>
>We had a quick look today, and it seems Gdk.PixBuf.new_from_file():
>
>http://library.gnome.org/devel/gdk-pixbuf/stable/gdk-pixbuf-file-loading.html#gdk-pixbuf-new-from-file
>
>
>With some instrumentation, it was apparent that it takes a long time
>to render some SVG files. One in particular took half a second on a
>laptop with a fast processor! A visual inspection of the problem
>files reveals they mostly contain just a <path> with a few dozen
>points in it.
>
>It seems GDK supports SVG through a loader plugin. Can we put the
>blame on librsvg for this slowness? Are there alternative SVG
>renderers we could try?
There's wxSVG, using libagg: http://www.wxsvg.org/
It has Python bindings, it seems.
- Jonas
- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkk90a4ACgkQn7DbMsAkQLggzwCdFGg08Y5elpa5pdcCJs0PSana
GaMAoIICmK17PJooP1+Rx0+Q9ctiIC9N
=+ruK
-----END PGP SIGNATURE-----
More information about the Sugar-devel
mailing list