22 Jun 2005 12:11
AbstractElement perf changes
vijayakumar palaniappan <vijayakumarpl <at> yahoo.com>
2005-06-22 10:11:33 GMT
2005-06-22 10:11:33 GMT
getDeclaredNamespaces() seems to create a new TreeSet and a new Comaprator object. Also it does a copy of all the elements in to the new Treeset. getNamespaceByURI() calls getDeclaredNamespaces(). Since getNamespaceByURI() gets called frequently and it does not modify _NSS, it is better to access it directly rather than through getDeclaredNamespaces(). listElements() uses a new NSI compartor. Probably it can reuse the comparator object defined in NSI Attached are the diffs. Thanks, Vijay ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com
_______________________________________________ jso-devel mailing list jso-devel <at> jabberstudio.org http://mail.jabber.org/mailman/listinfo/jso-devel
RSS Feed