geirm       01/11/21 22:18:31

  Modified:    src/java/org/apache/velocity/app Velocity.java
  Log:
  Faster...
  
  Revision  Changes    Path
  1.26      +13 -5     jakarta-velocity/src/java/org/apache/velocity/app/Velocity.java
  
  Index: Velocity.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/app/Velocity.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- Velocity.java     2001/11/22 06:00:27     1.25
  +++ Velocity.java     2001/11/22 06:18:31     1.26
  @@ -108,7 +108,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Geir Magnusson Jr.</a>
    * @author <a href="[EMAIL PROTECTED]">Christoph Reck</a>
    * @author <a href="[EMAIL PROTECTED]">Jason van Zyl</a>
  - * @version $Id: Velocity.java,v 1.25 2001/11/22 06:00:27 geirm Exp $
  + * @version $Id: Velocity.java,v 1.26 2001/11/22 06:18:31 geirm Exp $
    */
   
   public class Velocity implements RuntimeConstants
  @@ -409,19 +409,27 @@
               return false;
           }
   
  -        String construct = "#" + vmName + "(";
  +        /*
  +         *  now just create the VM call, and use evaluate
  +         */
  +
  +        StringBuffer construct = new StringBuffer("#");
  +
  +        construct.append( vmName );
  +        construct.append( "(" );
    
           for( int i = 0; i < params.length; i++)
           {
  -            construct = construct + " $"+params[i];
  +            construct.append( " $" );
  +            construct.append( params[i] );
           }
   
  -        construct = construct + " )";
  +        construct.append(" )");
   
           try
           {
               boolean retval = evaluate(  context,  writer,  
  -                                         logTag, construct );
  +                                         logTag, construct.toString() );
     
               return retval;
           }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to