Mineuniverse
Log in Register
Mods

Apoli Stream Leak

Overwrites Apoli's costly usages of Streams and memory-intensive operations that are run on every tick.
by Jonathing
Download Claim this project
81,885 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Bug Fixes Performance

Apoli Stream Leak

Apoli Stream Leak is a coremod for Forge that aims to fix avoidable performance issues for Apoli (Forge).

Purpose

Apoli is a 3rd-party redistribution of a library that comes built-in with Origins (Forge) that modders can use without needing to depend on the rest of Origins. There are several instances within Apoli's code where Streams are created in methods that are called every tick on both the client and server. The creations of these Streams, along with their associated lambda allocations, have caused noticeable performance degradations, especially on servers with multiple players connected.

Apoli Stream Leak overwrites the usages of these Stream creations with traditional for-loops and other alternative implementations in order to avoid excess memory usage. The result is immediate.

Performance Difference

Here is a Spark profile of the Resurvival modpack which contains Apoli:
https://spark.lucko.me/Qa87epEMA8

Here is a Spark profile of the same instance now including Apoli Stream Leak:
https://spark.lucko.me/vQ1lXBRg7w

Within Spark's own mod tree, Apoli itself sees a 4% decrease in tick time when paired with Apoli Stream Leak. Other mods such as Mining Master, which use events that Apoli directly hooks into, also see a decrease of around 1% or greater.

Open to Other Solutions

Apoli Stream Leak was created due to the absense of a open-source/source-available repository for Apoli (Forge) (NOT to be confused with the original Apoli mod). I am personally open to contributing the changes I have made with this coremod to Apoli itself (preferably for the Forge version as that is my use case). You can find me at jonathing.me.

ASL 1.1.0 for 1.20.1
MC Client, 1.20.1, Forge, Server
Release 2025-07-18 Get

More from Jonathing

ForageCraft
681,410
Mod Pack Update Checker
307,481
SolApplePie Origins Fix
235,090
Legacy Resource Fixer
15,508
Galoblender
1,337

You Might Also Like

Better Biome Reblend
Updated version of Better Biome Blend, a mod that improves and fixes biome color blending
9,432,920
Icterine
Advancements optimization (specifically, InventoryChangeTrigger)
9,118,727
- FPS Booster - Lag Killer
powerful client-side performance FPS booster
97,463
Better Pie Chart
This Mod improves the Vanilla Pile Chart perfect for Minecraft SMP servers
9,603
Enhanced Block Entities Backforged
Reduce FPS lag with block entities, as well as customize them with resource packs. Forge 1.16.5 port of EBE
9,451
Unbinilium
Ubinilium is a Minecraft mod designed to optimize performance and enhance gameplay. It stabilizes FPS, renders distant blocks with reduced detail, and efficiently manages memory.
9,364