Skip to content

Multithreading for command system #169

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

Merged
merged 3 commits into from
Oct 8, 2021

Conversation

Zabuzard
Copy link
Member

@Zabuzard Zabuzard commented Oct 8, 2021

Long running commands must not block other commands or processes. To ensure that, commands and guild updates are now executed multithreaded.

Port from the stale #119 which did not survive the massive refactoring introduced in develop.

@Zabuzard Zabuzard added the enhancement New feature or request label Oct 8, 2021
@Zabuzard Zabuzard added this to the Improvement phase 1 milestone Oct 8, 2021
@Zabuzard Zabuzard self-assigned this Oct 8, 2021
@Zabuzard Zabuzard requested review from a team as code owners October 8, 2021 08:11
@I-Al-Istannen
Copy link
Contributor

I am not sure that throwing those into the common fork join pool is a good idea (particularly the reload commands)?

@Zabuzard
Copy link
Member Author

Zabuzard commented Oct 8, 2021

I am not sure that throwing those into the common fork join pool is a good idea (particularly the reload commands)?

As discussed in Discord, I had a misunderstanding. Will use the cached pool with the next commit 👍

I-Al-Istannen
I-Al-Istannen previously approved these changes Oct 8, 2021
Tais993
Tais993 previously approved these changes Oct 8, 2021
* long running commands must not block other commands or processes. to ensure that, everything is now executed multithreaded
GUILD_SIZE_PARALLEL_THRESHOLD
->
GUILDS_AMOUNT_PARALLEL_THRESHOLD
@Zabuzard Zabuzard dismissed stale reviews from Tais993 and I-Al-Istannen via 1c352b1 October 8, 2021 10:52
@Zabuzard Zabuzard force-pushed the feature/multithreading_command_system branch from 82e41b7 to 1c352b1 Compare October 8, 2021 10:52
@Zabuzard
Copy link
Member Author

Zabuzard commented Oct 8, 2021

Rebased on develop (merge conflicts). Did not change any code. So reviews are not actually stale.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 8, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Zabuzard Zabuzard merged commit e71af63 into develop Oct 8, 2021
@Zabuzard Zabuzard deleted the feature/multithreading_command_system branch October 8, 2021 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants