[ https://issues.apache.org/jira/browse/XERCESC-1452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov closed XERCESC-1452. ------------------------------------ Resolution: Won't Fix Actually, Alberto is right. DOMNamedNodeMapImpl is only used to store entities, etc., in DOMDocumentTypeImpl. I tested and changing the MAP_SIZE value does not affect performance in any noticeable way. > DOMNamedNodeMapImpl::item() 10x preformance improvement > ------------------------------------------------------- > > Key: XERCESC-1452 > URL: https://issues.apache.org/jira/browse/XERCESC-1452 > Project: Xerces-C++ > Issue Type: Improvement > Components: DOM > Affects Versions: 3.0.1 > Environment: All environments > Reporter: Jeff Keasler > Assignee: Boris Kolpackov > Fix For: 3.1.0 > > > 10 second bug fix -- change MAP_SIZE constant in DOMNamedNodeMapImpl.hpp from > 193 to 17. > I use literally millions of DomNodes each having 2-10 attributes and > DOMNamedNodeMapImpl::item() is horribly implemented. It makes sense to fix > the problem by changing the definition of MAP_SIZE to 17. Even people with > 50 attributes will get decent performance if you make this change, wheras the > vast majority of people who only use 5-10 will see up to a 10x performance > improvement. > Thank you. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org