xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Neumann <neum...@karto.baug.ethz.ch>
Subject Re: Performance problem
Date Tue, 04 Oct 2005 13:40:05 GMT
I would also try to change the update interval.

It is also clear that drawing text elements is more expensive than 
drawing circles. Rendering text elements, as I understand, is adding 
several polygons. After all, with text you are rendering polygons, at 
least with SVG fonts. I don't know if Batik uses different methods to 
render text that is installed in the system. Also the extra "<g>" 
element decreases performance. If you don't really need the g-element 
you could omit it.

Maybe the newly introduced "static" patch would help (see 
http://issues.apache.org/bugzilla/show_bug.cgi?id=36627) could help as 
well? Maybe if you set the static attribute on the background map? 
Thomas, any comment on that? I yet have to test the "static" patch. 
Didn't have the time so far.


Steiner, Dominik wrote:

> Hi there my dear friends,
> I’m having a performance problem with my batik application. Basically 
> I’m doing as follows:
> 1) I’m having a big svg-map file (600KB) which I load one time into my 
> SVGCanvas
> 2) I’m displaying around 100 GPS points (which consists of a <g> that 
> contains a circle- and a text-element) on this map
> 3) Then at intervals of 500 ms I’m doing an update of the GPS points
> 4) The CPU is running at around 90% all the time
> 5) When I just display the GPS points as circles-elements it brings 
> the CPU down to around 40%
> So can it be that just adding an additional text-element can cause 
> such an decrease in performance? What are the ‘tricks’ that help to 
> save performance?
> Thank you so much for any help and hints…
> Dominik Steiner

Andreas Neumann - Institute of Cartography
Swiss Federal Institute of Technology (ETH)
ETH Hoenggerberg
CH-8093  Zurich, Switzerland
Phone: ++41-1-633 3031, Fax: ++41-1-633 1153
e-mail: neumann@karto.baug.ethz.ch
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message