ModsJava
Fast NBT
Speed up all kinds of NBT operations and improve game performance. Free Minecraft Java mod for 1.20.1.
⬇ Download on CurseForgeThis mod optimizes various methods in the CompoundTag class:
- For all kinds of
getmethods: In the vanilla game, it first calls thecontainsmethod to check if the key exists, then invokes thegetmethod. This results in two map lookups. This mod merges these two operations into one and applies inlining, which greatly improves the lookup speed. - It optimizes the iteration logic of the class: It replaces the pattern of iterating with
keySetpaired withgetwith an approach that iterates keys and values simultaneously, thus avoiding a large number of lookups during iteration. - It optimizes operations involving
getmethods in other related classes.
Fast NBT is a free Minecraft Java mod. Compatible with Minecraft 1.20.1. Downloaded 691,688 times (via CurseForge). Download it and open it directly in the game.