Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: XML performance and siz

0 views
Skip to first unread message

shin

unread,
Sep 6, 2005, 11:22:01 AM9/6/05
to
I have post this question a couple of days ago.
I just found out it takes more time to construct xml document
than parse and display in browser with javascript.

I am adding xml elements to string like the following

String s;
s = <xml>

for( int i = 0; i < 100000; i++ )
{
s += <ThisisELEMENT>mytext</ThisisElement>
}

also if i have shorter element name faster to construct.

for( int i = 0; i < 100000; i++ )
{
s += <a>mytext</a>
}

I don't know why this is happening. probabaly. The xml document takes too
much space in
my webserver?

String s;
s = <xml>

for( int i = 0; i < 100000; i++ )
{
s += <ThisisELEMENT>mytext</ThisisElement>
response.getOutputStream(s.byte())
}

If you have better idea let me know.

Shin
Re: XML performance and siz

0 new messages