DataFly Lib
No reviews yet
Simple lib for async I/O made originally for Adrenaline mod
Provides a framework or library for other mods to use.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
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
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
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources