You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by cb...@apache.org on 2016/07/22 17:35:53 UTC

svn commit: r1753818 - in /velocity/site/production/engine/devel: changes.html configuration.html

Author: cbrisson
Date: Fri Jul 22 17:35:53 2016
New Revision: 1753818

URL: http://svn.apache.org/viewvc?rev=1753818&view=rev
Log:
[site] changelog and string interning option in production

Modified:
    velocity/site/production/engine/devel/changes.html
    velocity/site/production/engine/devel/configuration.html

Modified: velocity/site/production/engine/devel/changes.html
URL: http://svn.apache.org/viewvc/velocity/site/production/engine/devel/changes.html?rev=1753818&r1=1753817&r2=1753818&view=diff
==============================================================================
--- velocity/site/production/engine/devel/changes.html (original)
+++ velocity/site/production/engine/devel/changes.html Fri Jul 22 17:35:53 2016
@@ -315,6 +315,55 @@ h2:hover > .headerlink, h3:hover > .head
     <tbody>
       <tr>
         <td>
+          <img src="images/add.png"/>
+        </td>
+        <td> applied Jarkko memory-saving patch which frees tokens while parsing . Fixes <a href="https://issues.apache.org/jira/browse/VELOCITY-841">VELOCITY-841</a>. Thanks to Jarkko Viinamäki.</td>
+        <td>cbrisson</td>
+      </tr>
+      <tr>
+        <td>
+          <img src="images/fix.png"/>
+        </td>
+        <td> support $array.empty, as for $list.empty . Fixes <a href="https://issues.apache.org/jira/browse/VELOCITY-843">VELOCITY-843</a>. </td>
+        <td>cbrisson</td>
+      </tr>
+      <tr>
+        <td>
+          <img src="images/fix.png"/>
+        </td>
+        <td> avoid useless string calculation in ASTStringLiteral . Fixes <a href="https://issues.apache.org/jira/browse/VELOCITY-833">VELOCITY-833</a>. Thanks to Jarkko Viinamäki.</td>
+        <td>cbrisson</td>
+      </tr>
+      <tr>
+        <td>
+          <img src="images/add.png"/>
+        </td>
+        <td> nicified AST tree debug output . </td>
+        <td>cbrisson</td>
+      </tr>
+      <tr>
+        <td>
+          <img src="images/fix.png"/>
+        </td>
+        <td> fix parsing of $obj._method() . Fixes <a href="https://issues.apache.org/jira/browse/VELOCITY-830">VELOCITY-830</a>. </td>
+        <td>cbrisson</td>
+      </tr>
+      <tr>
+        <td>
+          <img src="images/fix.png"/>
+        </td>
+        <td> loading default properties should not prepend '/' and should use classloader to get resource stream . Fixes <a href="https://issues.apache.org/jira/browse/VELOCITY-827">VELOCITY-827</a>. Thanks to Dawid Weiss.</td>
+        <td>cbrisson</td>
+      </tr>
+      <tr>
+        <td>
+          <img src="images/add.png"/>
+        </td>
+        <td> Allow conversion of method args from String to Enum constant . Fixes <a href="https://issues.apache.org/jira/browse/VELOCITY-825">VELOCITY-825</a>. </td>
+        <td>cbrisson</td>
+      </tr>
+      <tr>
+        <td>
           <img src="images/fix.png"/>
         </td>
         <td> Applied performance patch for MapGetExecutor: it's faster to directly use object instance rather than to inspect all public interfaces . Fixes <a href="https://issues.apache.org/jira/browse/VELOCITY-815">VELOCITY-815</a>. Thanks to Oswaldo Hernandez.</td>

Modified: velocity/site/production/engine/devel/configuration.html
URL: http://svn.apache.org/viewvc/velocity/site/production/engine/devel/configuration.html?rev=1753818&r1=1753817&r2=1753818&view=diff
==============================================================================
--- velocity/site/production/engine/devel/configuration.html (original)
+++ velocity/site/production/engine/devel/configuration.html Fri Jul 22 17:35:53 2016
@@ -249,6 +249,7 @@ h2:hover > .headerlink, h3:hover > .head
 <li><a href="#pluggable-introspection">Pluggable Introspection</a></li>
 <li><a href="#context">Context</a></li>
 <li><a href="#pluggable-resource-manager-and-resource-cache">Pluggable Resource Manager and Resource Cache</a></li>
+<li><a href="#string-interning">String Interning</a></li>
 <li><a href="#configuration-examples">Configuration Examples</a></li>
 </ul>
 </div>
@@ -488,6 +489,11 @@ file.resource.loader.modificationCheckIn
 
 
 <p>This key is also defined as a contstant <code>RuntimeConstants.RESOURCE_MANAGER_CACHE_SIZE</code></p>
+<h2 id="string-interning">String Interning<a class="headerlink" href="#string-interning" title="Permanent link">&para;</a></h2>
+<p><code>runtime.string.interning = true</code></p>
+<blockquote>
+<p>This property specifies whether to use Java (String interning)[https://en.wikipedia.org/wiki/String_interning] on identifiers. This may save some memory when set to true, and execute a little but faster when set to false.</p>
+</blockquote>
 <h2 id="configuration-examples">Configuration Examples<a class="headerlink" href="#configuration-examples" title="Permanent link">&para;</a></h2>
 <p>Configuring the resource loaders for Velocity is straightforward. The properties that control the are listed in the <a href="#Configuring_Resource_Loaders">resource configuration</a> section, for further reference.</p>
 <p>The first step in configuring one or more resource loaders is do 'declare' them by name to Velocity.  Use the property <code>resource.loader</code> and list one or more loader names. You can use anything you want - these names are used to associate configuration properties with a given loader.</p>