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 20gb memory usage for magnet code #2747

Merged
merged 2 commits into from
Jan 20, 2025
Merged

Fix 20gb memory usage for magnet code #2747

merged 2 commits into from
Jan 20, 2025

Conversation

GreaseMonk
Copy link
Contributor

About the PR

This is a bandaid fix for high memory usage for bags that use the magnet component.
It still happens when u have total, spread out, enough free slots, but this at least reduces the amount of occurrences of it happening.

image
image

Why / Balance

Performance fix

How to test

strap on your favorite magnet bag
put a giant load of items around you, fill up the bag, put even more items around you. (about 20+)
lets say you have 2 spaces left in your bag and theres a ton of items around you that each need 4 spaces.
Now, it wont cost you your computer's soul

Media

Requirements

Breaking changes

None

Changelog

Changelog not needed

@dvir001 dvir001 requested review from dvir001 and whatston3 January 20, 2025 13:02
@github-actions github-actions bot added the S: Needs Review This PR is awaiting reviews label Jan 20, 2025
Copy link
Contributor

@dvir001 dvir001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didnt test yet but look sane

Copy link
Contributor

@whatston3 whatston3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works alright.

@whatston3 whatston3 merged commit 279ba71 into master Jan 20, 2025
16 checks passed
@whatston3
Copy link
Contributor

So when're we going back to listinv?

@GreaseMonk GreaseMonk deleted the fix-bags branch January 21, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# S: Needs Review This PR is awaiting reviews S: Untriaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants