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=16459>. 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=16459 Memory waste in CoreDocumentImpl / DOMErrorHandlerWrapper Summary: Memory waste in CoreDocumentImpl / DOMErrorHandlerWrapper Product: Xerces2-J Version: 2.0.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Critical Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Every Document has unnecessary memory overhead of at least 24K. CoreDocumentImpl creates a DOMErrorHandlerWrapper(); (line 175) This is also marked as experimental. DOMErrorHandlerWrapper has: fOut = new PrintWriter(System.err); in it's constructor. This is causing each DOM Document to consume about ~24K. Even if you have a 50 byte xml file, it will still take ~24KB in memory because of this PrintWriter. Looking at where fOut is used, it can either be removed completely, or maybe made into a local variable when needed... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
