Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #8329: StorageService updates getting more expensive over time #8331

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

Technici4n
Copy link
Member

Fixes #8329 which was caused by the inner maps of cachedAvailableStacks never getting removed: once the primary key of an AEKey would have been observed in the network, it would never get removed from the cached stacks. This causes performance to degrade over time if many different items are transiting through the network.

The fix is simply the extra removeEmptySubmaps call. In this PR, I also removed the backbuffer because it looks pointless in the way it is currently implemented.

@shartte shartte merged commit 681c528 into main Jan 14, 2025
6 checks passed
@shartte shartte deleted the fix-8329 branch January 14, 2025 21:36
Technici4n added a commit that referenced this pull request Jan 14, 2025
…8331)

Fixes #8329 which was caused by the inner maps of
`cachedAvailableStacks` never getting removed: once the primary key of
an AEKey would have been observed in the network, it would never get
removed from the cached stacks. This causes performance to degrade over
time if many different items are transiting through the network.

The fix is simply the extra `removeEmptySubmaps` call. In this PR, I
also removed the backbuffer because it looks pointless in the way it is
currently implemented.
Technici4n added a commit that referenced this pull request Jan 14, 2025
…8331)

Fixes #8329 which was caused by the inner maps of
`cachedAvailableStacks` never getting removed: once the primary key of
an AEKey would have been observed in the network, it would never get
removed from the cached stacks. This causes performance to degrade over
time if many different items are transiting through the network.

The fix is simply the extra `removeEmptySubmaps` call. In this PR, I
also removed the backbuffer because it looks pointless in the way it is
currently implemented.
nk2IsHere pushed a commit to nk2IsHere/Franken-AE2 that referenced this pull request Jan 16, 2025
…nsive over time (AppliedEnergistics#8331)

Fixes AppliedEnergistics#8329 which was caused by the inner maps of
`cachedAvailableStacks` never getting removed: once the primary key of
an AEKey would have been observed in the network, it would never get
removed from the cached stacks. This causes performance to degrade over
time if many different items are transiting through the network.

The fix is simply the extra `removeEmptySubmaps` call. In this PR, I
also removed the backbuffer because it looks pointless in the way it is
currently implemented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After running my All the mods 10 server 1.21.1 for a hour or so tps is going down to a crawl fast....
2 participants