promotional bannermobile promotional banner

Fast NBT

Speed up all kinds of NBT operations and improve game performance
This mod optimizes various methods in the CompoundTag class:
  1. For all kinds of get methods: In the vanilla game, it first calls the contains method to check if the key exists, then invokes the get method. This results in two map lookups. This mod merges these two operations into one and applies inlining, which greatly improves the lookup speed.
  2. It optimizes the iteration logic of the class: It replaces the pattern of iterating with keySet paired with get with an approach that iterates keys and values simultaneously, thus avoiding a large number of lookups during iteration.
  3. It optimizes operations involving get methods in other related classes.

The Fast NBT Team

profile avatar
  • 3
    Followers
  • 5
    Projects
  • 806.1K
    Downloads

More from nutant233View all