Compatibility
Minecraft: Java Edition
1.21–1.21.1
Platforms
Supported environments
Client and server
Tags
Creators
Details
Licensed MIT
Published 2 weeks ago
Invasive Optimizations

Invasive optimizations for other mods, aiming to reduce server-side (tick) lag.
The invasive nature of these changes makes them more likely to crash or otherwise break.
Please report such issues to the issue tracker and I will try to respond to them in a timely manner.
Each change can also be individually toggled through the config and should solve any issues temporarily while you wait for a fix.
Optimizations included in this mod fall under one of the following categories:
- Merge request open but has not been reviewed for a long time.
- Merge request denied due to reasons unrelated to quality, such as non-maintenance, in which case future optimizations will also not be sent to that mod.
- No avenue of contribution (e.g. closed source mods)
Current optimizations:
- Botany Pots (Case 1)
botanypots.hopper_insertions: Hopper Botany Pot exponential insertion backoff and emptiness tracking (PR)
- Pipez (Case 2, Also see Pipez Lag Fix by AlmanaX21 for exponential backoff)
pipez.constant_fullness_checks: Turns connection/inventory fullness into O(1) operationspipez.early_exits: Reduces unnecessary work done by exiting targeted functions early if the right conditions are metpipez.extract_looped_work: Move some work out of loops to avoid duplicated workpipez.nbt_comparisons: Drastically improves performance of NBT comparisons by minimizing serialization/deserialization operationspipez.stream_abuse: Reduces abuse of Streams in hot paths to reduce allocation rate (PR)
- Xycraft Machines (Case 3)
xycraft_machines.unnecessary_resorting: Extractors resort their recipes every so often but is usually not necessary.xycraft_machines.redstone_checks: Extractors check for redstone signals every tick rather than only when their neighbours update.


