DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13695>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13695

Performance problem with large text nodes and XMLFormatter.cpp





------- Additional Comments From [EMAIL PROTECTED]  2002-10-17 
00:25 -------
Ostensibly what you did will work, but a couple of things look funny to me.  Now
before I put my foot in my mouth, I'm about 2 days new to the xerces code, so it
is entirely possible that I've got something mixed up in my head.  

Why do you increment srcPtr by charsEaten, but decrement srcCount by srcChars? 
These should, most of the time be the same.  However, due to the non 1-1 mapping
between the source form and unicode that isn't guarunteed (although probably
marginally safe because the mapping is almost always n-1, not the other way around).

My understanding of the trancodeTo function is that it stops processing when it
runs out of source chars or output buffer space.  So why even bother with the
srcChars variable?  Why not just pass srcCount to the transcoder, let it stop
when it runs out of output buffer (no matter how many that is), then use
charsEaten variable to do the math at the end of the loop?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to