promotional bannermobile promotional banner

Achievements Optimizer

Improved achievement performance
Back to Files

AchievementOptimizer-neoforge-1.21.1-2.1.0

File nameAchievementOptimizer-neoforge-1.21.1-2.1.0.jar
Uploader
big_energybig_energy
Uploaded
Aug 17, 2025
Downloads
305.8K
Size
15.8 KB
Mod Loaders
NeoForge
File ID
6897792
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:achievements-optimizer-912788:6897792"

Learn more about Curse Maven

What's new

  • Skipping ticks is done before the heavy calculation of occupied/empty/full slots — less extra work on each event.
  • With ignoreEmptyStacks enabled, empty stacks are discarded immediately, without causing an inventory scan.
  • Fast matching of many items (one pass through the inventory with boolean[] flags and early exit — without allocations, noticeably faster on large inventories and long lists of conditions).
  • Early filtering by slots (slots.matches(full, empty, occupied) is performed first, excluding further calculations in case of a mismatch.).
  • Preserved fast path for one target (with items.size() == 1, the check is done on changed without a full scan — the behavior is left, but surrounded by earlier cutoffs.).

This mod has no additional files