Description
FastRecipes
FastRecipes is a high-performance mod that drastically optimizes Minecraft's recipe system. It replaces the inefficient linear search algorithms with intelligent caching and hash-based indexing.
Does your server lag when someone opens a crafting table? Does your game freeze when looking up recipes in JEI/REI? FastRecipes fixes the root cause.
Why FastRecipes?
In massive modpacks (like All The Mods 9), there are over 100,000 recipes. Vanilla Minecraft checks them one by one (O(N) complexity). Other optimization mods try to brute-force this using multithreading.
FastRecipes is different. We index all recipes by their inputs. Instead of checking 50,000 recipes, we only check the 5-10 that actually match your items (O(1) complexity).
Comparison
| Feature | FastSuite | FastRecipes |
|---|---|---|
| Approach | Multithreading / Brute-force | Smart Indexing & Caching |
| Algorithm | Linear Search O(N) |
Constant Lookup O(1) |
| Overhead | High (Thread locking/Sync) | Zero (Instant lookup) |
| Speed | Faster than Vanilla | Instant |
Benchmarks
Tests were conducted on a Threadripper 1950x using the All The Mods 9 modpack (100k+ recipes). Time is in milliseconds (ms). Lower is better.
The "Heavy Load" Test (ATM 9)
The most critical scenario is a "Failed Match" (when you put items in a grid that don't result in a valid recipe). Vanilla Minecraft scans every single recipe before giving up, causing massive lag spikes.
| Scenario | FastSuite | FastRecipes | Vanilla | Improvement |
|---|---|---|---|---|
| Simple Craft | 0.65ms | 0.13ms | 15.98ms | ~117x Faster |
| Complex Craft | 1.06ms | 0.03ms | 22.93ms | ~774x Faster |
| Failed Match | 2.93ms | 0.12ms | 40.56ms | ~313x Faster |
The "Light Load" Vanilla
Even with few recipes, FastRecipes outperforms due to zero thread overhead.
| Test Case | FastSuite | FastRecipes | Vanilla |
|---|---|---|---|
| Simple Item | 0.1027 ms | 0.0050 ms | 0.0810 ms |
| Full Grid | 0.0821 ms | 0.0008 ms | 0.0697 ms |
| Failed Match | 0.0952 ms | 0.0037 ms | 0.1482 ms |
Configuration & Troubleshooting
FastRecipes is designed to be stable. However, some mods utilize "unsafe" recipe serializers that may crash during our Parallel Loading phase.
If you crash during startup (at the "Loading Recipes" stage), you can fix it easily:
- Open
config/fastrecipes-common.toml. - Set
UseAsyncRecipesLoadertofalse.
Note: This only affects startup speed. The in-game crafting performance will remain ultra-fast.
Verify it yourself!
Don't trust our numbers? Run the benchmark on your own PC!
- Go to
config/fastrecipes-common.toml. - Set
BenchmarkModetotrue. - Start your game/server.
- Check the logs after the first tick. The mod will run 10,000 iterations of various crafting scenarios and print the results.
(Don't forget to turn it off afterwards to avoid unnecessary calculations on startup!)
Why no 1.21 port?
Minecraft 1.21 includes native optimizations to the recipe system. The performance gap between Vanilla and FastRecipes in 1.21 is negligible (<1ms), rendering this mod unnecessary. We recommend sticking to Vanilla for 1.21+.
Credits
- Algorithm & Code: Sixik
- Testing Methodology: Adapted from FastSuite to ensure fair comparison.


