Mineuniverse
Mods
Fast Tag

Fast Tag

MOD
Optimize performance related to tags
by nutant233
Download Claim this project
53,565 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Performance
Advertisement Remove ads with Premium →

In vanilla MC, TagKey objects are deduplicated upon creation through an Interner, so no multiple identical objects exist (allowing identity comparison via identityHashCode and ==). However, since TagKey is a record class, it automatically generates hashCode and equals methods that compare the internal registry and location, and the Interner relies on these for deduplication. This makes hashCode and equals calls elsewhere slower compared to identity comparison. This mod replaces the Interner with a custom deduplicator and overrides the record-generated hashCode and equals, using identityHashCode and == instead, greatly improving comparison and lookup performance elsewhere while also slightly speeding up creation. Incidentally, ResourceKey has also been switched to this custom deduplicator, improving creation speed and reducing memory usage.

Which areas can be optimized: Tags are used in various places throughout MC, such as items, blocks, fluids, entities, world generation, etc., and they all perform checks on whether they contain a certain tag.

fasttag-1.20-26.1-forge.jar
MC Client, 1.20.1, Forge, Server
Release 2026-05-16 Get
fasttag-1.21.1-26.1-neoforge.jar
MC 1.21, Client, 1.21.1, NeoForge, Server
Release 2026-05-16 Get
fasttag-26.1-1-neoforge.jar
MC Client, NeoForge, Server, 26.1, 26.1.1, 26.1.2
Release 2026-05-14 Get

More from nutant233

Advertisement Remove ads with Premium →

You Might Also Like