aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Performance
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: 4659
    
    5

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: 18669
    
    8

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