From: Bryce Harrington <bryce@...1...> To: inkscape inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] more font work Date: Tue, 2 Mar 2004 11:16:28 -0800 (PST)
On Tue, 2 Mar 2004, Jonathan Phillips wrote:
Two things:
1.) What is the speed differences between using SVGs compared to XPMs for icons in the interface?
I don't think anyone's quantified it, but I traced through the code that gets called to render them, and it's quite extensive. My guess is that it's quite a bit slower, but couldn't say how much. I suspect that could be mitigated via caching the rendered bitmaps at compile or installation time.
2.) Currently, our interface doesn't use SVGs for icons, right?
I think it uses a mix of both SVG and XPM.
Bryce
Yes, it is a mix of both SVG and XPM. I was working on this a while ago when I added the Stock support. I got lost in the SVG icon rendering code and didn't know if we wanted to go exclusively with SVG or XPM, so I left things as a mix. I haven't had time to work on the code since before christmas. :(
Some icons in the icons.svg file aren't rendered as xpm yet. If we went exclusively with XPM's we could put everything in stock and get rid of the SPIcon code (I think). It should be faster and the code would be easier to manage and understand. Also, last time I looked, Valgrind was reporting quite a few memory leaks traceable to the SPIcon code.
Cheers, Rob. http://members.rogers.com/rcrosbie
_________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2f...