The Experts Talk: Thirteen Great Ways to Increase Java Performance
Hits: 113
Description: What do JavaSoft's own developers have to say about increasing Java performance? Here are their personal tips and tricks: Use buffered I/O.Using unbuffered I/O causes a lot of system calls for methods like InputStream.read(). This is common in code that parses input, such as commands from the network or configuration data from the disk. Try to avoid new. Garbage collection is rarely a serious performance overhead. But, Java1 virtual machine (JVM)-internal synchronization caused by the new operation can cause lock contention for applications with lots of threads. Sometimes new can be avoided by re-using byte arrays, or re-using objects that have some notion of a state-resetting method.