File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes Loading property files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Loading property files" Watch "Loading property files" New topic
Author

Loading property files

Nikita Dutt
Greenhorn

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 ?


Regards
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 3688

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
Bartender

Joined: Oct 14, 2005
Posts: 13842

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.
 
 
subject: Loading property files
 
Threads others viewed
sql query in web.xml or property file
Unicode text in property files
Reading property files
Unicode and Property files
how to use .sql files using java
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com