介绍
This mod has been replaced by https://www.curseforge.com/minecraft/mc-mods/lean-object, which comes with configuration, offers more powerful features, and includes more optimizations.
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.
常见问题
Fast Tag 支持哪些 Minecraft 版本?
Fast Tag 支持 Minecraft Java 版 1.20.1–26.1.2,共 6 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
Fast Tag 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
nutant233 的其他作品
查看全部 →Fast NBT
加速各类 NBT 操作,提升游戏性能。
Fast Recipe Search
大幅加快配方搜索速度。
Infinite Storage Cell
Added infinite capacity storage cell to Applied Energistics 2.
GregTech Leisure
Pure-tech GregTech: Modern pack. Full GT progression, less grind — Steam ULV to MAX.
评论
登录后评论和评分