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 <[email protected]>:
> 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 your
> program simple and paste it in the email so as others can help
>
> On Tue, Apr 5, 2011 at 7:08 PM, Patrick Diviacco <[email protected]
>> 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 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
>>
>
>
>
> --
> 王巍巍
> Cell: 18911288489
> MSN: [email protected]
> Blog: http://whisper.eyesay.org
> 围脖:http://t.sina.com/lolorosa
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to