You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by jk...@apache.org on 2015/07/29 16:48:37 UTC

tapestry-5 git commit: TAP5-2476: we're going to append at least {{length}} characters, so we can expand the builder to that capacity without wasting resources

Repository: tapestry-5
Updated Branches:
  refs/heads/master f13311782 -> ef7060efa


TAP5-2476: we're going to append at least {{length}} characters, so we can expand the builder to that capacity without wasting resources


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/ef7060ef
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/ef7060ef
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/ef7060ef

Branch: refs/heads/master
Commit: ef7060efadfec0652aa7758a3376e190d13737aa
Parents: f133117
Author: Jochen Kemnade <jo...@eddyson.de>
Authored: Wed Jul 29 16:47:15 2015 +0200
Committer: Jochen Kemnade <jo...@eddyson.de>
Committed: Wed Jul 29 16:47:15 2015 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/ef7060ef/tapestry-core/src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java b/tapestry-core/src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java
index 63879c2..cf9bd0b 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/dom/AbstractMarkupModel.java
@@ -93,6 +93,7 @@ public abstract class AbstractMarkupModel implements MarkupModel
     {
         assert content != null;
         int length = content.length(), tokenStart = 0, i = 0;
+        builder.ensureCapacity(builder.length() + length);
         String delimiter;
         for (; i < length; i++)
         {