Skip to content

Multithreading for command system - #169

Merged
Zabuzard merged 3 commits into
developfrom
feature/multithreading_command_system
Oct 8, 2021
Merged

Zabuzard merged 3 commits into
developfrom
feature/multithreading_command_system

Conversation

@Zabuzard

@Zabuzard Zabuzard commented Oct 8, 2021

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor

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

@Zabuzard

Zabuzard commented Oct 8, 2021

Copy link
Copy Markdown
Member Author

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

Zabuzard commented Oct 8, 2021

Copy link
Copy Markdown
Member Author

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

@sonarqubecloud

sonarqubecloud Bot commented Oct 8, 2021

Copy link
Copy Markdown

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