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.
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).
| 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 |
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 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 |
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 |
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:
config/fastrecipes-common.toml.UseAsyncRecipesLoader to false.Note: This only affects startup speed. The in-game crafting performance will remain ultra-fast.
Don't trust our numbers? Run the benchmark on your own PC!
config/fastrecipes-common.toml.BenchmarkMode to true.(Don't forget to turn it off afterwards to avoid unnecessary calculations on startup!)
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+.