[
Lists Home |
Date Index |
Thread Index
]
If your problem is with the memory consumption it doesn't really matter
which parser you use, you'll end up with about the same document size in
memory. Your best choice in this case is to find a more compact
representation for your data. You can use a SAX parser to read the data
and build your own structure from it, or use XML data binding (such as
with Castor - http://www.castor.org; I have an article on IBM
developerWorks that gives some examples for this at
http://www-106.ibm.com/developerworks/xml/library/x-bindcastor/index.html)
to automatically convert between XML and your data structures.
If you're really concerned with speed the parser choice can make a
difference - Piccolo (http://piccolo.sourceforge.net/index.html) looks
very good if you don't need validation.
5 files of 101KB doesn't sound like much in any case. Are you sure your
problem is due to the XML document handling?
- Dennis
Subrahmanyam_Pappu wrote:
> Hi all,
> We have used Sax and Dom persers to read our 5 xml files each having
> capacity of 101KB. Before weblogic starts all the xml files are
> loaded into memeory. But that was taking much memory, so tried to
> implement JDOM parser. Even then the same memory problem comes and the
> efficiency is not increased.
>
> Can any one suggest which parsers to be used to increase the performance?
> Regards,
> Subrahmanyam.
> **************************************************************************
>
> This email (including any attachments) is intended for the sole use of
> the intended recipient/s and may contain material that is CONFIDENTIAL
> AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or
> copying or distribution or forwarding of any or all of the contents in
> this message is STRICTLY PROHIBITED. If you are not the intended
> recipient, please contact the sender by email and delete all copies;
> your cooperation in this regard is appreciated.
>
> **************************************************************************
>
>
>
>------------------------------------------------------------------------
>
>-----------------------------------------------------------------
>The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>initiative of OASIS <http://www.oasis-open.org>
>
>The list archives are at http://lists.xml.org/archives/xml-dev/
>
>To subscribe or unsubscribe from this list use the subscription
>manager: <http://lists.xml.org/ob/adm.pl>
>
- References:
- parser to use
- From: Subrahmanyam_Pappu <Subrahmanyam_Pappu@satyam.com>
|