incur a performance hit

With that difference in mind, using synchronization will incur a performance hit . So if you don't need a thread-safe collection, use the ArrayList . Why pay the price of synchronization unnecessarily ?

 

好多经典绝句!

你可能感兴趣的:(thread,performance)