dcsimg
Properties class performance
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jesus_Guerra
Posted On:   Monday, January 21, 2002 03:49 AM

I need to get a wide bunch od data loaded in memory for my WLS to work properly (it's application navigation info). Let's say it's about 5,000 entries of the kind CODE=VALUE, for example:
PAG1_NEXT_PAGE=/www/form1.jsp
PAG2_NEXT_PAGE=/www/mysub/form5.jsp
...
PAG5000_NEXT_PAGE=...

then, my question is: could be useful the Properties component to build up this point? Is there any performance problem or restriction known about Properties? If then, what should I use? What if I need 50,000 pairs of info; could be there any problem?


Thanks in advance.
Jesus.

Re: Properties class performance

Posted By:   Christopher_Schultz  
Posted On:   Monday, January 21, 2002 05:01 AM

The only issues that I can see with the Properties object is that it can only hold keys and values of type java.lang.String.



If you want to be extra-safe, write your own properties-style class which uses a java.util.Properties object to store its data. If you determine that the performance is too slow, you can re-write the implementation of your properties-style class and not have to modify any of your other code.



-chris
About | Sitemap | Contact