constellation-app / constellation

A graph-focused data visualisation and interactive analysis application.
https://constellation-app.com
Apache License 2.0
385 stars 59 forks source link

Revised some of the fixed Threadpool usage. #2158

Closed OrionsGuardian closed 1 month ago

OrionsGuardian commented 1 month ago

Prerequisites

Description of the Change

Addressing the issue found in #2157

Changed some key areas of code that were using the global fixed threadpool to instead have their own dedicated fixed threadpool. This avoids situations where functionality was being unnecessarily blocked when the global fixed threadpool was exhausted.

Alternate Designs

Considered using the cached threadpool, but for long running processes, it is recommended to use a fixed threadpool.

Why Should This Be In Core?

Prevent unnecessary locks/blocking in the system.

Benefits

Improve system performance and usability.

Verification Process

Create multiple new graphs and confirm you can keep creating new graphs beyond the number of logical processors in your system. And each new graph is fully functional (ie. can be edited)

Applicable Issues

2157

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
50.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud