This 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.

