Skip to content

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
ressidell pushed a commit to ressidell/Essentials that referenced this pull request Apr 27, 2025
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

4 participants