webwork/src/main/webwork/config XMLActionConfiguration.java,1.17,1.18
[email protected] Sun, 08 Aug 2004 20:57:07 -0700
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13984/src/main/webwork/config
Modified Files:
XMLActionConfiguration.java
Log Message:
Speed up startup slightly by getting node length once
Index: XMLActionConfiguration.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/config/XMLActionConfiguration.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- XMLActionConfiguration.java 29 Dec 2003 01:12:08 -0000 1.17
+++ XMLActionConfiguration.java 9 Aug 2004 03:57:05 -0000 1.18
@@ -85,7 +85,8 @@
NodeList actions = document.getElementsByTagName("action");
// Build list of views
- for (int i = 0; i < actions.getLength(); i++)
+ int length = actions.getLength();
+ for (int i = 0; i < length; i++)
{
Element action = (Element)actions.item(i);
String actionName = action.getAttribute("name");
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com