DataFly Lib 图标

DataFly Lib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/datafly-lib
资源信息

Minecraft 版本: 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6

平台: forge

标签: library utility

资源介绍

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 — 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
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Rage Lifesteal

价格:0 墨喵币
下载量:0

查看详情
Amethyst Axolotl

价格:0 墨喵币
下载量:0

查看详情
ScKillMsgSpam

价格:0 墨喵币
下载量:0

查看详情
PotatoPC Warfare

价格:0 墨喵币
下载量:0

查看详情