Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 32881 invoked from network); 3 Jun 2010 00:40:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Jun 2010 00:40:05 -0000 Received: (qmail 81378 invoked by uid 500); 3 Jun 2010 00:40:04 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 81229 invoked by uid 500); 3 Jun 2010 00:40:04 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 81221 invoked by uid 99); 3 Jun 2010 00:40:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 00:40:04 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fmorbini@gmail.com designates 209.85.160.171 as permitted sender) Received: from [209.85.160.171] (HELO mail-gy0-f171.google.com) (209.85.160.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2010 00:39:57 +0000 Received: by gyf3 with SMTP id 3so4751787gyf.30 for ; Wed, 02 Jun 2010 17:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=psXMFUYcv1CFBZG6SQ9+h/9NDja524Xsykq5PfmsHJg=; b=eqXOWZHoqvSM4BLM0MxBONcmHHKnCtpg62e6vCGgxtfl755vtirMMxNe6y00L3Pg2G aE5XB2P0FLPWYoYnZymY0EOL7FoI4n6Bo5U2sFTTnthLX+ypfmDSUZniHxkxpouWtzO4 aL/707hDS1ZHxzsdk2wK9HXZThI0Qj+N4oLKE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=HXASg1k09Cfr+Xlevxw5TzaBhuHa6XwZVWoTQVu3nqRRXdCULa6O1Fglj2a2HgVhUg AytIjkFJEISefDDtVZXq3BmtFUaquTcHkgWkm55+nsGqE884A85w0O37AJXrrBwIkh3S a/j30HPTsdg1da9TaG2E/pD8BJr87IRSEh4hM= Received: by 10.150.176.7 with SMTP id y7mr8221052ybe.421.1275525576125; Wed, 02 Jun 2010 17:39:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.78.13 with HTTP; Wed, 2 Jun 2010 17:39:16 -0700 (PDT) In-Reply-To: References: From: Fabrizio Morbini Date: Wed, 2 Jun 2010 17:39:16 -0700 Message-ID: Subject: Re: [scxml] src and parser invocation To: Commons Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Rahul, (btw, thanks for your quick and precise answers.) is there anything wrong in modifying the methog: DigestSrcAttributeRule in SCXMLParser.java to add an HashMap that stores the result of the call "externalSrcDigester.parse(location);" for a given "location"? If the same "location" is encountered again, the previous result is reused. i tried this and it works fine (no parse errors) and reduces the parse time from 90 seconds to less than a second. But i didn't try to execute the network and i'm afraid the produced network may have some subtle problems caused by reusing the result of the parser. thanks, fabrizio. On Wed, Jun 2, 2010 at 17:18, Rahul Akolkar wrote= : > On Wed, Jun 2, 2010 at 8:08 PM, Fabrizio Morbini wro= te: >> Hi, if we have the following case: >> =A02 scxml files: a.scxml and b.scxml >> =A0in a.scxml, 2 different nodes use the src attribute to source the >> content from other 2 different nodes defined in b.scxml (using the >> syntax src=3D"b.scxml#node_i"). >> >> is the file b.scxml completely parsed for every instance of src >> attribute found while parsing a.scxml? Or is b.scxml parsed only once >> and the result reused? >> > > > It will be parsed twice, completely (any time the src attribute is > used, the entire document at the mentioned URL is parsed). Therefore, > where possible, its better to separate content that gets sourced in, > into smaller independent files. > > -Rahul > > >> thanks, >> fabrizio. >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org