Article View: borland.public.jbuilder.java.api
Article #1338Re: Java Properties vs XML
From: John McGrath TeamB
Date: Tue, 12 Mar 2002 02:12
Date: Tue, 12 Mar 2002 02:12
24 lines
1534 bytes
1534 bytes
On Sun, 10 Mar 2002 14:01:44 -0800, Dan Tran wrote:
> I would like to implement string resource mapping. There are 2 way in my
> mind:
>
> 1. Use Java Properties
> 2. Use XML and load it in a DOM tree
>
> My resource is big, upto 1000 entries
>
> Which way is better, faster interm of searching!!!
If the structure of your data is just key-value pairs, I would go with
the Properties file. It will be easier to code, it should load more
quickly and lookup time should be less.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.16f72e0efc162bab98b428@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!nntp-relay.ihug.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3c8bd80c$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,f99390192887b3fa X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-03-11 18:21:28 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: Java Properties vs XML Date: Mon, 11 Mar 2002 21:12:16 -0500 Message-ID: <MPG.16f72e0efc162bab98b428@newsgroups.borland.com> References: <3c8bd80c$1_1@dnews> X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 1015899136 209.92.40.60 (11 Mar 2002 18:12:16 -0800) Lines: 24 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!nntp-relay.ihug.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews