Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 85708 invoked from network); 6 Aug 2009 14:01:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Aug 2009 14:01:10 -0000 Received: (qmail 32777 invoked by uid 500); 6 Aug 2009 14:01:17 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 32703 invoked by uid 500); 6 Aug 2009 14:01:17 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 32692 invoked by uid 99); 6 Aug 2009 14:01:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 14:01:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ddevienne@gmail.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-vw0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 14:01:09 +0000 Received: by vws7 with SMTP id 7so797911vws.29 for ; Thu, 06 Aug 2009 07:00:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=p9UHjMA0YIkZ2lR4TgsG91TgPoz7RsygLETcea7LBSM=; b=hWMEk+Kf5CBvW3g+9iAUsJjLq/VxiHq93ITULvisa1wX6cSABg7dRY28pjQBp0SkJP BV9dAIg9xk8HuBTXGWBE8H4qqNeiEWuW9EbgUBx53HF5hwtljlakCcYe0/rcik1n4OaJ tiuc+NBkZ3PUhIsPR1/VLvsRIlld5bLoLwS4U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=vWoofjoVYT7YvoTWWxVnDbACWPxWIFcSqHAjvu0eqIeAccZLDMyUqF24VitmvmK2vU 8iDbs+yFDwEPVyKrADzzq1Bwt59h8fRNMAlg7KD/V0pcAwm+eg828KjNpTcaraDadHyh huPs1L4tVoAK7/DkYhl05uKiIn9qmPYM+Vb7s= MIME-Version: 1.0 Received: by 10.220.76.1 with SMTP id a1mr10310455vck.80.1249567246087; Thu, 06 Aug 2009 07:00:46 -0700 (PDT) In-Reply-To: <24846081.post@talk.nabble.com> References: <24846081.post@talk.nabble.com> Date: Thu, 6 Aug 2009 09:00:46 -0500 Message-ID: <255d8d690908060700g7f2a6290r2b3beb6d88dd7d99@mail.gmail.com> Subject: Re: Ant XML Files precompilation From: Dominique Devienne To: Ant Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Aug 6, 2009 at 8:00 AM, Raja Nagendra Kumar wrote: > However, due to imports and multiple times using of task with no > inheritance, time taken per device is more than an minute.. On a one minute build, parsing the build file(s) is likely peanuts compared to the build itself, unless you are doing some unusual stuff. In any case, profile before you optimize. > so for 100 devices.. it needs lot more time than tolerable.. Since it sounds like your 100 devices builds are orthogonal from each other, maybe you could build them in ? (or enhance to support parallel building?) > In this context, is there a way Reduce the time of XML parsing/time of > importing of xmls by way of any precompilation such as convert the xml file > in .class files once and use the class files rest of the time etc.. > Some thing in lines to pre-compilation of jsp is there any thing for ant xml > files pre-compilation. There's no such thing in Ant. Given how Ant operates, the best you could achieve would be a pre-parsing to UnknownElement, but since the parsing stage is mixed up with Project and Target creation (and legacy id handling I think), just doing that would be non-trivial and likely not BC. Ant has no "intermediate language" that logically represents the build files and build in general, and in fact doesn't have clear static and dynamic contexts the way XSLT does for example, which is an essential feature to allow having the equivalent of a pre-compiled stylesheet. But I'm sure there's probably room for improvement in your build times still, even with stock Ant, by taking a step back from your current build design and think it thru, internally or on list, if you don't mind sharing more details about what's going on. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org