Download Apoli Stream Leak — Minecraft Mods — MetaMods

Apoli Stream Leak

Active

Downloads

0

Last update

3 months ago
Client

Apoli Stream Leak

Apoli Stream Leak is a core modification for Forge designed to eliminate preventable performance issues associated with Apoli (Forge).

Purpose

Apoli is a third-party redistributable library that is originally built into Origins (Forge). Mod developers can use it independently of the other Origins components. In Apoli's code, there are several places where data streams are created in methods called every game tick on both the client and server. The creation of these streams along with accompanying lambda expressions leads to noticeable performance degradation, especially on servers with many connected players.

Apoli Stream Leak replaces the usage of these data streams with traditional for loops and other alternative implementations to avoid excessive memory consumption. The result becomes immediately apparent.

Performance Difference

Here is a Spark performance profile for the Resurvival modpack that includes Apoli: https://spark.lucko.me/Qa87epEMA8

And here is a Spark performance profile for the same instance but now with Apoli Stream Leak installed: https://spark.lucko.me/vQ1lXBRg7w

In Spark's own mod tree, Apoli itself shows a 4% reduction in tick time when used together with Apoli Stream Leak. Other mods such as Mining Master, which use events directly intercepted by Apoli, also show a reduction of approximately 1% or more.

Openness to Other Solutions

Apoli Stream Leak was created due to the lack of an open-source repository for Apoli (Forge) (not to be confused with the original Apoli mod). I am personally open to contributing the changes implemented in this core modification directly to Apoli itself (preferably for the Forge version as this is my primary area of application).

Project members
Jonathing

Jonathing

Created: 9 Jul 2025

ID: 255215