commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Tripodi <simonetrip...@apache.org>
Subject Re: [digester] digester performance..
Date Wed, 06 Apr 2011 06:01:28 GMT
I'd discourage XPath since implies maintaining the DOM in memory, if
the XML document Patrick is parsing is large is thousand and thousand
of Megabytes, XPath is not efficient as well.
Patrick, honestly I didn't understand the problem :) sounds a Lucene
performance problem, did you already try writing on Lucene ML?
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Tue, Apr 5, 2011 at 11:24 PM, Jimmy Zhang <crackeur@comcast.net> wrote:
> Have you considered using xpath instead of digester?
>
> -----Original Message----- From: Patrick Diviacco
> Sent: Tuesday, April 05, 2011 4:08 AM
> To: Commons Users List
> Subject: [digester] digester performance..
>
> 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 anymore.
>
> However, since I don't use Digester and external xml files, the performance
> of my app got worse.
>
> I now have the same data stored in a ArrayList<ArrayList<String>> and I'm
> iterate them with a for cycle.
>
> Before they were in a xml file with the following structure:
>
> <collection>
> <doc>
> <field1></field1>
> ..
> </doc>
> ..
> </collection>
>
> Is really Digester much faster in iterating my data from xml file than a for
> loop iterating an ArrayList with the same content?
>
> thanks
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message