DataStructium
DataStructium is a Minecraft optimization mod that significantly speeds up operations with various game data through the use of caching and more efficient data structures.
Main improvements in version 1.7.0:
The mod offers comprehensive optimization of various game aspects:
- Faster Forge class scanning - skips analysis of unused class data
- Caching of numeric NBT tags - reduces memory allocations
- Efficient Map/Set implementations - replaces standard data structures with more performant ones
- Improved BlockPos hashing - minimizes collisions and increases performance
- Industrial Foregoing optimization - faster gathering of StoneWork recipes for JEI
- Masterful Machinery caching - structure checking becomes faster by saving intermediate results. In the E6E modpack, MM structure checking consumed up to 10% of server resources, and with DataStructium it became 10 times faster (from 9.73% to 0.81%)
Additional optimizations in later versions:
- Version 1.1.0+: Tiered internal structure for CompoundTag
- Version 1.4.0+: Faster spawn egg lookup in Just Enough Resources, plus fixed NPE bug when loading JEI recipes
- Version 1.5.0+: KubeJS Resource Cache prevents repeated file walking
- Version 1.6.0+: Optimized ToolIngredient initialization in Farmer's Delight, saving time on repeated ItemStack creation and reducing memory usage
- Version 1.7.0+: Key interning for CompoundTag backend further reduces memory consumption
- Version 1.7.0+: Faster chunk section iteration, making client-side chunk meshing and other chunk section-based operations faster