Mineuniverse
Log in Register
Mods

DataFly Lib

Simple lib for async I/O made originally for Adrenaline mod
by flyinmyeye
Download Claim this project
359 downloads
0 likes
Updated Jul 6, 2026
0 hypes
API and Library Performance

Datafly

A shared async I/O library for Fly's Minecraft mods providing centralized, high-performance disk persistence.

Features

  • One shared thread pool across all mods — no wasted threads, no duplicated I/O code
  • Write data from any thread and get a result via DataTask<T> — no blocking, no callback hell
  • Read-your-writes guarantee — reads always return the latest submitted value even before it hits disk
  • Coalesces burst writes to the same key — only the last value in a time window actually writes to disk
  • Atomic writes via tmp → fsync → rename — no half-written or corrupted files on crash
  • Emergency gzip compression when buffer memory runs low — trades CPU for heap headroom
  • Spill oversized writes to a temp spool directory instead of blocking or dropping data
  • Crash recovery — leftover spool files are re-drained to their destinations on next startup
  • Pluggable codec system — JSON, NBT, TOML, YAML, raw bytes, or bring your own
  • Per-mod writer configuration — each mod controls its own heap limit, codec, coalesce window, and cache size
  • Optional LRU read cache — skip disk entirely for hot keys
  • update() — atomic read-modify-write with the write lock held for the full cycle
  • computeIfAbsent() — create-or-update in one atomic call
  • World-agnostic — works from the main menu, client-side, dedicated server, anywhere
datafly-1.0.0.jar
MC 1.20.2-Snapshot, 1.20.5-Snapshot, Client, 1.20.2, 1.20.5, 1.20.1, Forge, 1.20, 1.20.6, 1.20-Snapshot, 1.20.4, 1.20.3-Snapshot, 1.20.3, Server
Release 2026-04-10 Get

More from flyinmyeye

Fly's config lib
461
Fly's Adrenaline
400

You Might Also Like

Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527
Lodestone
A collection of code used throughout projects under the Lodestar team.
9,914,417
TheDragonLib
A library for most of sokratis12GR's Mods
9,910,232
Multi Mob Library
A library mod containing essential files for Daveyx0's mob mods
9,892,767
FTB Library (Forge) (Legacy)
FTB Library is a library mod that is used for some of our mods.
98,265,314