You need to take the performance reports with a grain of salt; typically synchronized classes are 10-30% slower than the equivalent unsynchronized ones, but you might be talking about 1000ms for 1000000 operations vs. 1300ms, Unless your program is going to be hitting those classes an awful lot, the performance difference probably won't be noticeable.
-----Original Message----- From: ShriKant Vashishtha [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 22, 2001 2:37 AM To: [EMAIL PROTECTED] Subject: The usage of Vector vs ArrayList Hi, I heard that performance of ArrayList is far better than the usage of Vector because of synchronization usage in Vector. So we can use the ArrayList wherever synchronization issue is not there. In case of web-applications where if all multi-threading issues are taken care by a Stateless EJB, do we need to handle on the helper class level also. Or in other terms where will it be safer to use the ArrayList in a typical web-application. Many Thanks, -ShriKant =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp 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 FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
