I/O operations

This is another area that is important from the performance optimization point of view. If you need to read or write files to your server, you need to rely on Java’s I/O APIs. The I/O operations are resource intensive and may consume a large amount of processing time. This can turn into a big performance bottleneck, and hence, it is important to tune this area to improve the overall application performance.

Most Java developers still rely on the basic I/O APIs, which are more than adequate to perform any file related operations. However, they do have some performance issues, for example, InputStream.read() performs character-by-character reading or the method Reader.read() reads one character at a time. Then there are stream-related ...

Get Java 9 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.