[nobug] performance: invoke .size() only once instead of on every iteration.
diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/DefaultXMLPartitionFormatter.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/DefaultXMLPartitionFormatter.java
index 035ad92..3e278a5 100644
--- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/DefaultXMLPartitionFormatter.java
+++ b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/DefaultXMLPartitionFormatter.java
@@ -894,7 +894,8 @@
 				if (indentMultipleAttribute) {
 					int attributesCount = 0;
 					int i = 2;
-					while (i < textRegions.size() && attributesCount < 2) {
+					final int size = textRegions.size();
+					while (i < size && attributesCount < 2) {
 						if (DOMRegionContext.XML_TAG_ATTRIBUTE_NAME.equals(textRegions.get(i).getType())) {
 							++attributesCount;
 						}