🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1339

Re: Java Properties vs XML

#1339
From: Dan Tran
Date: Tue, 12 Mar 2002 05:23
36 lines
1951 bytes
John, thank your for the comment.

Could you enlighten me why java properies is
faster interm of look up?

Thanks

-Dan

"John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message
news:MPG.16f72e0efc162bab98b428@newsgroups.borland.com...
> 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: <3c8d911b$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.icl.net!newsfeed1.cidera.com!Cidera!cyclone2.usenetserver.com!usenetserver.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3c8bd80c$1_1@dnews> <MPG.16f72e0efc162bab98b428@newsgroups.borland.com>

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 21:38:45 PST
From: "Dan Tran" <danttran@hotmail.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3c8bd80c$1_1@dnews> <MPG.16f72e0efc162bab98b428@newsgroups.borland.com>
Subject: Re: Java Properties vs XML
Date: Mon, 11 Mar 2002 21:23:15 -0800
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 65.184.100.101
Message-ID: <3c8d911b$1_1@dnews>
X-Trace: dnews 1015910683 65.184.100.101 (11 Mar 2002 21:24:43 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.icl.net!newsfeed1.cidera.com!Cidera!cyclone2.usenetserver.com!usenetserver.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews