Hi, I am having similar issues with the applet I'm developing. For small images the applet seems to perform fine, but when the uncompressed image is > 1MB, it takes a long time to load and/or I end up with a Java Heap Error. I have followed the advice given in this thread and see improvement in performance. However, I will still get heap errors on the largest documents. I presume it's because the SVGZs I'm dealing with are inefficient (I don't write the images, only display/modify SVGZs in the applet). Was wondering what else I could do to improve the performance. Is there some sort of industry best practices document available for SVG Authoring?Regards, Marc
To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: A query on Batik PerformanceFrom: [EMAIL PROTECTED]: Wed, 19 Dec 2007 06:06:38 -0500Hi Paveen, Andreas, "Andreas Neumann" <[EMAIL PROTECTED]> wrote on 12/19/2007 05:16:20 AM:> I had a quick look at your file. There are some issues:> * the bulk of your file consists of useless <polygon/> elements. [...] > If I delete this strange figure, the unzipped filesize shrinks to> 80kb. I agree with Andreas that your major problem is this figure. It looks to me like the figure is the result of some sort of 'autotrace' on a raster image. You may not be aware that SVG is quite capable of displaying raster images (like PNG/JPEG) so you might consider embedding the original raster image as say a PNG with transparency. Alternately you might consider having a graphic artist draw the figure natively in a vector graphics application (e.g. Sketsa, Inkscape, Illustrator) which can export it to SVG. I also agree with Andreas, that the structure of your document could use some improvements. CSS classes, and/or defining attributes on groups could further improve performance.
