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

Cache overridden-commands and player-commands in Settings #4345

Merged
merged 2 commits into from Jul 11, 2021

Conversation

mdcfe
Copy link
Member

@mdcfe mdcfe commented Jul 11, 2021

Information

This PR fixes a regression introduced in #4072. Closes #4337.

Details

Proposed fix:
This PR changes Settings to cache the overridden-commands and player-commands lists in Settings.

Since #4072, EssentialsPlayerListener.CommandSendListener has incurred a significant performance penalty, as the Configurate rewrite inadvertently removed caching of these two lists.

Environments tested:

OS: TODO

Java version: TODO

Demonstration:

See comments on #4337 for more details.

@triagonal triagonal added module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX. labels Jul 11, 2021
@mdcfe mdcfe requested a review from JRoy July 11, 2021 15:20
@JRoy JRoy merged commit eed73e3 into 2.x Jul 11, 2021
@JRoy JRoy deleted the fix/uncached-settings-hot-paths branch July 11, 2021 16:25
@mdcfe mdcfe requested review from JRoy and removed request for JRoy July 11, 2021 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: main Issues or PRs for the main Essentials module type: bugfix PRs that fix bugs in EssentialsX.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting lag from essentialsX dev build 201
3 participants