To improve the performance, in the constructor define the initial capacity and the load factor. Else instead of using HashTable you can use HashMap, coz the former is synchronized while the latter is not synchronized. when the number of objects exceed the loadfactor, then the capacity of the class increases to 2*capacity+1. For more information read java docs.
-----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of Peter Sent: Thursday, June 19, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: hash table Hi all I have a doubt will Usage of Hash Table will create any havoc.. Hashtable h_branchscript = new Hashtable(); this is default constructor declaration I have used.. The Cpu Usage is going very heavy. Kindly advice Regards Peter ========================= To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com