Skip to content

Limit parallelism to 8 threads#5

Merged
propertone merged 2 commits intomainfrom
pr/propertone/limit_parallelism_to_8/EH35
Sep 11, 2025
Merged

Limit parallelism to 8 threads#5
propertone merged 2 commits intomainfrom
pr/propertone/limit_parallelism_to_8/EH35

Conversation

@propertone
Copy link
Copy Markdown
Member

Anything higher uses more CPU but doesn't yield any performance benefits

Anything higher uses more CPU but doesn't yield any performance benefits
@propertone propertone requested a review from mkomitee September 7, 2025 13:55
@propertone propertone self-assigned this Sep 7, 2025
@propertone propertone requested a review from mkomitee September 9, 2025 21:39
@propertone propertone requested a review from Copilot September 10, 2025 15:38
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces thread pool configuration to limit parallelism to a maximum of 8 threads for performance optimization. Based on testing, using more than 8 threads provides no performance benefits while consuming additional CPU resources.

  • Adds a constant MAX_THREADS set to 8 to define the thread limit
  • Implements configure_parallelism() function to configure Rayon's global thread pool
  • Calls the configuration function early in main() before processing begins

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@propertone propertone merged commit c1aaa22 into main Sep 11, 2025
@propertone propertone deleted the pr/propertone/limit_parallelism_to_8/EH35 branch September 11, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants