Return-Path: Delivered-To: apmail-ode-commits-archive@www.apache.org Received: (qmail 93559 invoked from network); 10 Apr 2008 22:46:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2008 22:46:41 -0000 Received: (qmail 75813 invoked by uid 500); 10 Apr 2008 22:46:41 -0000 Delivered-To: apmail-ode-commits-archive@ode.apache.org Received: (qmail 75771 invoked by uid 500); 10 Apr 2008 22:46:41 -0000 Mailing-List: contact commits-help@ode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ode.apache.org Delivered-To: mailing list commits@ode.apache.org Received: (qmail 75762 invoked by uid 99); 10 Apr 2008 22:46:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 15:46:41 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 22:46:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6BDE11A9832; Thu, 10 Apr 2008 15:46:15 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r646996 - /ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java Date: Thu, 10 Apr 2008 22:46:13 -0000 To: commits@ode.apache.org From: mriou@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080410224616.6BDE11A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mriou Date: Thu Apr 10 15:46:02 2008 New Revision: 646996 URL: http://svn.apache.org/viewvc?rev=646996&view=rev Log: Optimization on assign, no need to save twice when a variable is initialized and then set. Modified: ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java Modified: ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java?rev=646996&r1=646995&r2=646996&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java (original) +++ ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java Thu Apr 10 15:46:02 2008 @@ -121,7 +121,9 @@ tempwrapper.appendChild(val); val = tempwrapper; } else doc.appendChild(val); - lval = initializeVariable(lvar, val); + // Only external variables need to be initialized, others are new and going to be overwtitten + if (lvar.declaration.extVar != null) lval = initializeVariable(lvar, val); + else lval = val; } else lval = fetchVariableData(lvar, true); }