Enhance Collection Performance with this Treasure Trove - O'Reilly Media
06/12/2002 Ever use the Collections API? How can you say no?! The Collections framework is probably one of the best API sets available to a Java programmer. Since many parts of our applications use a HashMap ArrayList , or LinkedList at some point, enhancing the performance of these guys can do a lot for us. Eric D. Friedman wrote a high performance set of collections called Trove . Trove allows you to plug in their versions of certain containers ( HashMap LinkedList ), and use them just like you did with the standard versions. There are also ways to utilize primitive collections to gain even more performance. Don't you love open source? In this article, we will discuss: Using Trove classes Using a Factory to allow you to switch between Trove and JDK collections Trove's Primitive collections Using Trove Classes Trove is ridiculously simple to work with. You can simply download the code and set up your CLASSPATH lib/trove.jar file. To use the Trove classes,Read full article from Enhance Collection Performance with this Treasure Trove - O'Reilly Media
No comments:
Post a Comment