크게 네부분에서의 성능 향상이 있었습니다.
이중에서 일반 개발자 관점에서의 주목되는 부분은 StringBuffer 클래스의 등장과 어플리케이션 개발 차원에서의 2D쪽과 Image I/O 향상이네요.
이중에서 일반 개발자 관점에서의 주목되는 부분은 StringBuffer 클래스의 등장과 어플리케이션 개발 차원에서의 2D쪽과 Image I/O 향상이네요.
Enhancements in JDK 5.0
The following are some of the enhancements made for improved
program execution speed in JDK 5.0.
- Garbage collection ergonomics - Provides for the automatic
detection and choice of the client or server runtime compiler,
which enhances performance on server-class machines.
See "Server-Class Machine Detection" and "Garbage Collection
Ergonomics" at Java
Virtual Machines for more information.
- StringBuilder class - The addition of a new class
StringBuilder
that works essentially as an unsynchronized StringBuffer for performance
enhancement. You should replace all StringBuffer uses with StringBuilder
unless you need the synchronization (which you almost certainly don't).
StringBuilder is almost always faster than StringBuffer.
- Java 2DTM technology -
These Java 2D performance enhancements have spin-off performance
benefits in other areas of functionality such as Swing/JFC.
Examples include improved acceleration for BufferedImage objects,
support for hardware-accelerated rendering using OpenGL,
and improved text-rendering performance.
See New Java 2D Features
for more information.
- Image I/O - Performance and memory usage improvements have been
made when reading and writing JPEG images. See "Improved Performance" at
Image I/O Features.