CurseForge · Minecraft mod
Yet Another Memory Optimization (YAMO)
Don't load JAR files in memory and lazy-load DFU
Quick answer
Which Yet Another Memory Optimization (YAMO) release should I use?
Yet Another Memory Optimization (YAMO) yammo-1.0.6.jar targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is Yet Another Memory Optimization (YAMO) required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Yet Another Memory Optimization (YAMO) yammo-1.0.6.jar need?
yammo-1.0.6.jar. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Yet Another Memory Optimization (YAMO) without breaking your instance.
Built for Yet Another Memory Optimization (YAMO) yammo-1.0.6.jar. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use yammo-1.0.6.jar. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside yammo-1.0.6.jar. It opens that exact file at the source.
About this project
What does Yet Another Memory Optimization (YAMO) add?
Yet Another Memory Optimization (YAMO)
YAMO is an attempt to further optimize memory usage. It has two main features that can cut memory in (large) modpacks. The methods employed are somewhat hacky, so no guarantees that this works everywhere.
To fully experience what YAMO can do to free up memory you should create a new world with your pack, fly around a bit in creative, wait for a minute and then close and restart the game (for an explanation, see below).
In-memory JAR files
Mods are distributed as JAR files. The JAR loading mechanism that is part of NeoForge (and Forge) loads some inner JAR resources by keeping the entire file in memory. Most mods don't use this inner JAR mechanism, but some do. This can add up to hundreds of MBs in a large modpack.
The solution in YAMO is to store the in-memory JAR on disk in the 'cache/mods' subdirectory. Changes in the original JARs should be detected and the cache dir should be updated correctly. Deleting the cache dir is also fine, since it will be rebuild on the next run.
A further improvement to the JAR loading is in the in-memory index of the underlying ZIP structure. The JARs may be loaded multiple times from different places (might depend on JDK). When this is detected the ZIP index is deduped (which can be a couple of MBs for larger mods, e.g. MineColonies).
Attempt to load the DFU (DataFixerUpper) only when required
The DFU is responsible for upgrading NBT from older game versions to the current version on-the-fly. This is required when you load an old world where chunks, including blocks and entities, require updating. It is a complex rule-based process which requires 100Mb+ of RAM to store the rules efficiently so that the updating itself is fast. It has been much improved in terms of loading speed as well, so the need to load it lazily is smaller. To save memory this mod still attempts to load it only when required.
Because most mods that contain structures have NBT data from older versions it turns out that the DFU is required very quickly when you have some of those mods in your pack. When YAMO detects an old NBT structure it loads the DFU dynamically and then attempts to write all updated NBT structure data to the 'cache/structures' subdirectory. This process can take up to a minute and happens mostly in the background. The result is that all structures in your modpack are now available in the most recent NBT version and the DFU would not be required on the next run.
Project description from CurseForge.
Pick your setup
Yet Another Memory Optimization (YAMO) by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Yet Another Memory Optimization (YAMO) versions and loaders
yammo-1.0.6.jar
24 Dec 2025
yammo-1.0.5.jar
23 Dec 2025
yammo-1.0.3.jar
23 Mar 2025
yammo-1.0.2.jar
20 Mar 2025
yammo-1.0.1.jar
3 Mar 2025
yammo-1.0.1.jar
3 Mar 2025
yammo-1.0.0.jar
2 Mar 2025
Looking for an older file? The official CurseForge project page is in Resources.