xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr KrajĨa <pkra...@iol.cz>
Subject removing multiple objects
Date Sat, 05 Jun 2004 10:18:00 GMT
hello,

i have small performance problem. if i remove multiple objects from document (about 300),
it takes about half a minute. it seems to be a long time, because adding these objects takes
just 4 seconds.
the code is something like this:

int cnt = list.size();
for (int i = 0; i < cnt; i++)
{
	Node e = (Node)list.get(i);
	if (e != null) e.getParentNode().removeChild(e);
}
		
list.clear();

i think this is caused by some rerendring or something like that. is there anyway howto make
this code faster?

thanks for anything

petr krajca


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


Mime
View raw message