-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve worker pool scaling logic and update README
- Update the worker pool scaling logic to consider the size of the workerStack and the length of the taskQueue. - Adjust the scaling logic to double the workerStack when the taskQueue length exceeds 75% of the workerStack size, but not exceeding maxWorkers. - Adjust the scaling logic to halve the workerStack when the taskQueue is empty, but not less than minWorkers. - Update the README to reflect these changes and improve the feature list format. - Add comments to the code for better readability. Signed-off-by: Daniel Hu <[email protected]>
- Loading branch information
1 parent
4974182
commit c219d43
Showing
3 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters