Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 50335 invoked from network); 5 Apr 2011 13:45:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Apr 2011 13:45:49 -0000 Received: (qmail 80500 invoked by uid 500); 5 Apr 2011 13:45:48 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 80372 invoked by uid 500); 5 Apr 2011 13:45:47 -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 80330 invoked by uid 99); 5 Apr 2011 13:45:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Apr 2011 13:45:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simone.tripodi@gmail.com designates 74.125.82.49 as permitted sender) Received: from [74.125.82.49] (HELO mail-ww0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Apr 2011 13:45:42 +0000 Received: by wwb39 with SMTP id 39so439256wwb.6 for ; Tue, 05 Apr 2011 06:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Vdb9s+6psDWoBBNd+TSTdmaucaTRIBcPtpMoMjod7Vk=; b=vkp+EYbMqhv8gRqjWotcD11sLpxI1RJVBiy7aIEpHR0r41Sddn2nwsZXJwAtY4uoSU Jgy20ReYvOnddP8B+LIg0lltNgnqvwnsGe3cJQC9JXwgRlWY1Q6DG/SJmjdUDe6Dl2GB vGpA4yodcXuAW1OCwix4QoYEfQzfE9wK8YIw4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=cGvCToWUpLZExdn478whrNE72o84Hq1j9Q1PAw5omFdL5VwVcxkj9fBuLXzXl2nF5g XACS3aQJ4us4VaoE65LJS5wNx7v9O6oi+Gj8ctlbzRCwXXVJ1dxvB2ILFQG3R+bp2UzN VNaXECPV6wxKqxZtWfZWS+YYtCbkp5QsJ53g8= MIME-Version: 1.0 Received: by 10.227.160.199 with SMTP id o7mr8399139wbx.197.1302011120506; Tue, 05 Apr 2011 06:45:20 -0700 (PDT) Sender: simone.tripodi@gmail.com Received: by 10.227.143.141 with HTTP; Tue, 5 Apr 2011 06:45:20 -0700 (PDT) In-Reply-To: References: Date: Tue, 5 Apr 2011 15:45:20 +0200 X-Google-Sender-Auth: hHLrUGouZ7YOPmJuSJOl_8FhG5U Message-ID: Subject: Re: [digester] digester performance.. From: Simone Tripodi To: Commons Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Patrick, if the Digester program you're speaking about is the one you pasted here time ago... well, there were a lot of optimization missed. For example I suggested you using the Lucene rules instead of storing all the properties in a POJO then creating the Lucene Document, in that way you limit the amount of stored data. When parsing large XML document - like your case - I suggest you mapping to Object as less as possible and stream more. HTH, Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ 2011/4/5 Weiwei Wang : > I don't not think your program becomes slower because you are not using > Digester, RAM should be much faster. Suggest you make your main part of y= our > program simple and paste it in the email so as others can help > > On Tue, Apr 5, 2011 at 7:08 PM, Patrick Diviacco > wrote: > >> hi, >> >> I've a java app and I've stopped to use Digester recently because all my >> data is now kept in RAM and I don't need to write/parse xml files anymor= e. >> >> However, since I don't use Digester and external xml files, the performa= nce >> of my app got worse. >> >> I now have the same data stored in a ArrayList> and I'= m >> iterate them with a for cycle. >> >> Before they were in a xml file with the following structure: >> >> >> >> >> .. >> >> .. >> >> >> Is really Digester much faster in iterating my data from xml file than a >> for >> loop iterating an ArrayList with the same content? >> >> thanks >> > > > > -- > =E7=8E=8B=E5=B7=8D=E5=B7=8D > Cell: 18911288489 > MSN: ww.wang.cs@gmail.com > Blog: http://whisper.eyesay.org > =E5=9B=B4=E8=84=96:http://t.sina.com/lolorosa > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org