File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes Loading property files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Loading property files" Watch "Loading property files" New topic

Loading property files

Nikita Dutt

Joined: Dec 24, 2010
Posts: 20

Hi All,

I have a requirement where in i would have to add 4 property files in the weblogic class-path so that i can use them them at run-time , the issue is each property file will have 65000 unique key/value pairs. This would be a one time activity as in the contents of the property file will not be changed once the server starts-up .

Will this effect my performance in terms of getting response back from the application ? Memory utilization would be high but that is ok from my senior perspective.

Please help me in this , any ideas suggestion to improve this ?

Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

As once only code, it should have no impact on your actual performance.

But I have to ask, why do you need a quarter million key/value pairs in property files. To me, this begs for a database, perhaps memcached or some other no-sql database, but still a database.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Pat Farrell wrote:As once only code, it should have no impact on your actual performance.

Especially if you do it right, and load the property files when the application starts. Waiting until the first request for the data could cause that request to be delayed.
I agree. Here's the link:
subject: Loading property files
It's not a secret anymore!