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

Improve HopperXfer performance #182

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Improve HopperXfer performance #182

merged 1 commit into from
Feb 29, 2024

Conversation

Tig3r98
Copy link
Contributor

@Tig3r98 Tig3r98 commented Feb 12, 2024

Inventory#getContents() is expensive and it was being called unnecessarily.
I've also modified the mcMMOListener in the same manner, altough it's commented (I don't know why), to prevent this happening in the future.
This PR has been benchmarked and used in production for a long time, the performance improvements on the check were well above 10x.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good change.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also good change.

Copy link
Collaborator

@Loving11ish Loving11ish left a comment

Choose a reason for hiding this comment

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

This seems a good idea.

@Loving11ish Loving11ish merged commit 6dcb168 into dniym:master Feb 29, 2024
1 check passed
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.

2 participants