Tag

Buffered Streams

1 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Feb 9, 2021 · Backend Development

Optimizing Java File Compression: From Buffered Streams to NIO Channels and Memory‑Mapped Files

This article demonstrates how to improve Java file compression performance by replacing unbuffered FileInputStream with BufferedInputStream, then leveraging NIO Channels, transferTo, memory‑mapped files, and Pipe, showing step‑by‑step code examples and timing results that reduce processing time from 30 seconds to about 1 second.

Buffered StreamsJavaMemory-Mapped Files
0 likes · 11 min read
Optimizing Java File Compression: From Buffered Streams to NIO Channels and Memory‑Mapped Files
Selected Java Interview Questions
Selected Java Interview Questions
Nov 20, 2020 · Fundamentals

Comprehensive Guide to Java IO Streams: Concepts, Types, and Practical Examples

This article explains the fundamentals of Java IO, covering the definition of streams, their characteristics, classification by direction, data unit and function, the role of node and processing streams, buffering for performance, serialization, and includes extensive code examples and efficiency comparisons.

Buffered StreamsFile I/OJava
0 likes · 23 min read
Comprehensive Guide to Java IO Streams: Concepts, Types, and Practical Examples
Top Architect
Top Architect
Nov 15, 2020 · Backend Development

Optimizing Java File Compression: From Buffered Streams to NIO Channels and Memory‑Mapped Files

This article explains how to improve the performance of Java code that compresses multiple images into a zip archive by replacing unbuffered streams with buffered I/O, then using NIO channels, direct buffers, memory‑mapped files, and pipes, achieving a reduction from 30 seconds to about 1 second.

Buffered StreamsJavaMemory-Mapped Files
0 likes · 12 min read
Optimizing Java File Compression: From Buffered Streams to NIO Channels and Memory‑Mapped Files
Java Captain
Java Captain
Nov 12, 2020 · Backend Development

Optimizing Java File Compression: From Buffered Streams to NIO Channels, Memory‑Mapped Files and Pipes

This article demonstrates how to dramatically reduce the time required to compress multiple large images in Java by progressively applying buffered streams, NIO channels, direct buffers, memory‑mapped files and pipe techniques, measuring each optimization and explaining the underlying I/O mechanisms.

Buffered StreamsJavaMemory-Mapped Files
0 likes · 13 min read
Optimizing Java File Compression: From Buffered Streams to NIO Channels, Memory‑Mapped Files and Pipes