xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MrG <m...@realisingvisions.com>
Subject Performance-Issue, group elements
Date Thu, 22 Nov 2012 11:49:55 GMT
hi, i try to group a lot of elements (>1000).

this is my code at the moment:

-----------------------------------------------------------
Element group = editor.doc.createElementNS(editor.svgNS,
SVGConstants.SVG_G_TAG);
group.setAttributeNS(null, "id", groupID);

for(int i=0; i<nodes.size(); i++) {
	group.appendChild(nodes.get(i));
}
  
editor.doc.getRootElement().appendChild(group);
-----------------------------------------------------------

this takes a lot of time > 8s

is there a way to optimize grouping elements?

thanks!  
  



--
View this message in context: http://batik.2283329.n4.nabble.com/Performance-Issue-group-elements-tp4655381.html
Sent from the Batik - Users mailing list archive at Nabble.com.

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


Mime
View raw message