Skip to content

andrestubbe/FastIO

Repository files navigation

FastIO — Ultra-Fast Native File I/O for Java v0.1.0

⚡ High-performance file I/O library — 5-20× faster than java.nio with unbuffered native I/O and zero-copy operations.

Build Java Platform License: MIT JitPack


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.");
    }
}

Table of Contents


Key Features

  • 🚀 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.

Installation

FastIO requires two dependencies: the module itself and FastCore (the native loader).

Maven (JitPack)

<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>

Gradle (JitPack)

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'io.github.andrestubbe:fastio:0.1.0'
    implementation 'com.github.andrestubbe:fastcore:0.1.0'
}

Option 3: Direct Download (No Build Tool)

Download the latest JARs directly to add them to your classpath:

  1. 📦 fastio-v0.1.0.jar
  2. ⚙️ fastcore-v0.1.0.jar

License

MIT License — See LICENSE for details.


Related Projects


Made with ⚡ by Andre Stubbe

About

⚡ High-performance native Windows file I/O for Java. Replaces java.nio with unbuffered I/O, memory-mapped files, and zero-copy operations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors