On Thu, 23 Dec 2004, Bryce Harrington wrote:
Date: Thu, 23 Dec 2004 10:55:30 -0800 (PST) From: Bryce Harrington <bryce@...1...> To: inkscape-devel@lists.sourceforge.net Subject: [Inkscape-devel] [cairo] Very slow performance (fwd)
---------- Forwarded message ---------- Date: Thu, 23 Dec 2004 09:54:59 -0500 From: Chris <fltk@...78...> To: cairo@...278... Subject: [cairo] Very slow performance
I have some fairly complex SVG artwork that I created. I have noticed that the performance of Cairo is quite a bit slower than some other svg libraries.
My image has about 3500 paths and on my machine this image takes less than a second to load and render in Inkscape (librsvg/libart based?). Even Inkscape feels slow compared to commercial applications when handling this file.
I made a simple test program that loads this file and renders it to an image buffer in Cairo. It takes over 30 seconds to do this. That's incredibly slow and makes me wonder about the usability of Cairo in everyday applications.
Would rendering to OpenGL or xlib be faster? I'm planning on adding SVG support to FLTK by using Cairo so even if those are faster that might not help me as FLTK has it's own cross-platform drawing functions that I will be using.
Where is the bottleneck? Is libart just that much faster at doing the rendering?
The source code for my simple test is here: http://www.functionalfuture.com/radical/cairotest.c
The SVG image I'm using is here: http://www.functionalfuture.com/radical/centi_unfinished.svg.gz
-- // Chris
In case anyone else is interested enough to read the rest of the thread here's the direct link to this message in the Cairo mailing list archives http://lists.freedesktop.org/pipermail/cairo/2004-December/002376.html
Sincerely
Alan Horkan
Dia is for Diagrams http://gnome.org/projects/dia/ Abiword is Awesome http://abisource.com