[Sugar-devel] SVG performance
Asheesh Laroia
asheesh at creativecommons.org
Thu Dec 11 16:36:20 EST 2008
On Mon, 8 Dec 2008, Bernie Innocenti wrote:
> Walter Bender wrote:
>> I have been trying to speed up Turtle Art, which initializes much
>> slower (4x) since I converted from GIF to SVG. I've tried a lot of
>> tweaking, such as eliminating the linear gradients, in an attempt to
>> find out where the rendering bottleneck is (the file sizes are not
>> sizes are about the same) to no avail. Anyone have any experience with
>> such things?
>
> Some time ago, me and tomeu did some timing on loading, parsing and
> rendering the activity icons with librsvg within Sugar.
>
> I have not kept the raw output, but I remember that rendering was
> reasonably fast for most icons (10ms or so), and slowish for a couple
> of problem icons with too many polygons. One of these was indeed
> TurtleArt!
>
> Our super-sophisticated secret profiler was something
> like this:
[snip]
FWIW, a slightly better profile is called timeit, and you can see in the
Examples at http://docs.python.org/library/timeit.html that it's very easy
to use too.
-- Asheesh.
--
You own a dog, but you can only feed a cat.
More information about the Sugar-devel
mailing list