⚡ High-performance file I/O library — 5-20× faster than java.nio with unbuffered native I/O and zero-copy operations.
FastIO is a high-performance Java file I/O library that replaces java.io and java.nio with a native Windows backend. Built for maximum throughput and zero-copy data processing.
// Quick Start — Example
import fastio.FastIO;
import java.nio.ByteBuffer;
public class Demo {
public static void main(String[] args) {
// Read entire file into a direct buffer (zero-copy)
ByteBuffer data = FastIO.readAllBytes("config.json");
System.out.println("Read " + data.remaining() + " bytes.");
}
}- 🚀 Native Performance — Direct Win32 access via JNI.
- ⚡ Zero Overhead — Memory-mapped files and direct ByteBuffers.
- 📦 Zero Dependencies — Only requires
FastCore. - 🛠️ Format Optimizations — Built-in high-speed readers.
FastIO requires two dependencies: the module itself and FastCore (the native loader).
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<!-- 1. The FastIO Module -->
<dependency>
<groupId>io.github.andrestubbe</groupId>
<artifactId>fastio</artifactId>
<version>0.1.0</version>
</dependency>
<!-- 2. FastCore (Mandatory Native Loader) -->
<dependency>
<groupId>com.github.andrestubbe</groupId>
<artifactId>fastcore</artifactId>
<version>0.1.0</version>
</dependency>
</dependencies>repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'io.github.andrestubbe:fastio:0.1.0'
implementation 'com.github.andrestubbe:fastcore:0.1.0'
}Download the latest JARs directly to add them to your classpath:
MIT License — See LICENSE for details.
Made with ⚡ by Andre Stubbe