DataFly Lib
by FlyInMyEye
DataFly Lib is a Forge library that moves file reads and writes off the main thread, with a shared pool, coalesced writes and fallbacks for heavy load.
What it does
DataFly Lib provides asynchronous input and output for other Forge mods. It began as the data layer of the Adrenaline mod and was split out so that several mods can share one thread pool, instead of each starting its own threads and repeating the same file handling code. A mod that writes data passes a DataTask and receives its result through a callback, so the main game thread is not held while the disk is busy.
Bursts of writes to the same key are coalesced within a time window, so only the last value is written to disk. When memory runs low, the library can compress pending data with gzip to free heap space, at the cost of some CPU time. Writes too large for the buffer are spilled into a temporary spool directory rather than blocked or dropped. Adrenaline requires DataFly Lib, which is the only other mod listed as depending on it.
The library is published for Forge only, for 1.20.1 – 1.20.6, with 1.0.0 for 1.20.6 as the latest file. It runs on client and server, so both sides need it. The code is not open source; it is released under All rights reserved.
Key features
Shared thread pool
One pool serves every mod that uses the library, so threads are not started separately for each mod.
Blocking-free data tasks
Mods submit a DataTask and get the result by callback, without waiting on the calling thread.
Coalesced writes
Repeated writes to one key inside a time window are merged, and only the final value reaches the disk.
Memory fallbacks
Under memory pressure, pending data can be gzip-compressed, and oversized writes go to a temporary spool directory.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Required by 1 mod
Use cases
Mods with frequent saves
A mod that updates a data file many times per second can rely on write coalescing to avoid a disk write for every change.
Questions
Does Adrenaline need DataFly Lib?
Which loader and versions does DataFly Lib support?
Does DataFly Lib have to be installed on the server?
In the catalog
DataFly Lib is one of 3,514 Library mods on ModsFinder, and one of 1,576 Library mods for Forge. 11,154 mods support Minecraft 1.20.6.
More from FlyInMyEye
Similar mods
Official listing
- Modrinth page
- modrinth.com/mod/datafly-lib
- Owner
- FlyInMyEye
- Published
- 2026-03-29
- Updated on Modrinth
- 2026-03-30
- Facts verified
- 2026-10-15
