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=20273>. 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=20273 AttributesImplSerializer slow for low number of attributes Summary: AttributesImplSerializer slow for low number of attributes Product: XalanJ2 Version: CurrentCVS Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: org.apache.xalan.serialize AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] org.xml.sax.helpers.AttributesImpl is faster for a low number of attributes, but it has a linear search for getIndex(String qname) makes it Order N*N as N attributes are added, so some things ran VERY slowly. AttributesImplSerializer has a Hashtable to speed this up for large N, but it is about twice as slow for small N. Suggest a hybrid solution that only uses the Hashtable after 10 or so attributes have been added.
