click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r751523 - in /incubator/click/branches/click-2.0.x: documentation/docs/roadmap-changes.html framework/src/org/apache/click/control/AbstractContainer.java
Date Sun, 08 Mar 2009 20:55:26 GMT
Author: sabob
Date: Sun Mar  8 20:55:25 2009
New Revision: 751523

URL: http://svn.apache.org/viewvc?rev=751523&view=rev
Log:
performance improvement for HTML imports

Modified:
    incubator/click/branches/click-2.0.x/documentation/docs/roadmap-changes.html
    incubator/click/branches/click-2.0.x/framework/src/org/apache/click/control/AbstractContainer.java

Modified: incubator/click/branches/click-2.0.x/documentation/docs/roadmap-changes.html
URL: http://svn.apache.org/viewvc/incubator/click/branches/click-2.0.x/documentation/docs/roadmap-changes.html?rev=751523&r1=751522&r2=751523&view=diff
==============================================================================
--- incubator/click/branches/click-2.0.x/documentation/docs/roadmap-changes.html (original)
+++ incubator/click/branches/click-2.0.x/documentation/docs/roadmap-changes.html Sun Mar 
8 20:55:25 2009
@@ -83,6 +83,10 @@
     </div>
     <ul style="padding: 0em; margin-left:0em;margin-bottom: 2em">
       <li class="change">
+          Improved performance in situations where many controls are added to
+          a page by decreasing the buffer size used for including HTML imports.
+      </li>
+      <li class="change">
           <a class="external" target="_blank" href="http://code.google.com/p/click-calendar/">Click
Calendar</a>
           version 1.0.1 has been released which fixes a memory leak in the calendar popup
           [<a target='_blank' href="https://issues.apache.org/click/browse/CLK-499">499</a>].

Modified: incubator/click/branches/click-2.0.x/framework/src/org/apache/click/control/AbstractContainer.java
URL: http://svn.apache.org/viewvc/incubator/click/branches/click-2.0.x/framework/src/org/apache/click/control/AbstractContainer.java?rev=751523&r1=751522&r2=751523&view=diff
==============================================================================
--- incubator/click/branches/click-2.0.x/framework/src/org/apache/click/control/AbstractContainer.java
(original)
+++ incubator/click/branches/click-2.0.x/framework/src/org/apache/click/control/AbstractContainer.java
Sun Mar  8 20:55:25 2009
@@ -361,7 +361,7 @@
      */
     public String getHtmlImports() {
         if (hasControls()) {
-            HtmlStringBuffer buffer = new HtmlStringBuffer(512);
+            HtmlStringBuffer buffer = new HtmlStringBuffer(0);
             for (int i = 0, size = getControls().size(); i < size; i++) {
                 Control control = (Control) getControls().get(i);
                 String htmlImports = control.getHtmlImports();



Mime
View raw message