FastMapCodec
ModProvides more efficient BaseMapCodec.decode implementation
Type
Mod
Modrinth Downloads
552
Modrinth ID
CN7axcWy
Last Updated
Oct 9, 2026
Description
Mainly fixes TPS freeze on player join caused by large advancement files (and the same class of freeze anywhere else in the game, or in other mods, that arises from decoding a large map through DFU).
It is okay to use this mod on server only or client only.
Fixes O(N²) behavior in Mojang's BaseMapCodec (part of com.mojang:datafixerupper) when decoding large map-based Codecs. Since the fix lives in BaseMapCodec itself, it applies to every codec built on top of it - UnboundedMapCodec, SimpleMapCodec, and anything else sharing the same decode/encode logic - not just player advancements.
This bug was introduced in 1.21 and is present up to modern versions.
Benchmarks comparing this mod's fix to vanilla behaviour (with some context) are available here:
The fix has also been submitted upstream to Mojang's DataFixerUpper:
If Mojang accepts the PR, this mod won't be needed on newer versions.
NeoForge disclaimer
On NeoForge, this mod uses some cursed techniques to modify DFU behaviour, which may cause incompatibility with other mods. If you notice any issues, please open an issue on GitHub.
It is known to be incompatible with Sodium Extra.
This only applies to NeoForge — the Fabric version is not affected.
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Create Transferables
Ever wanted to just stick a fluid pipe or a Create shaft straight through a Nether portal? This mod lets you do exactly...
Cobblemon Pokestops
This mod adds Pokemon GO inspired Pokestops to Cobblemon. Pokestops can be used to get items, and they have a cooldown p...
Create: Better High Seas
High Seas is a NeoForge mod that adds a physically simulated flooding and buoyancy system for large ships built with Cre...
Treasure Map Coordinates
This mod gives you coordinates of the structure that is on the treasure map that you are holding
Food Overhaul
Overhauls the food system to be similar to games like Valheim or Enshrouded.
Phone : MC Device
MC Device A mod that adds electronic devices and household appliances.