Skip to content
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

Set default parallelism for stage operators to the available number of processors #681

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sundargates
Copy link
Collaborator

Context

For stages that can be executed in parallel, set the default parallelism to the available number of cores.

Checklist

  • ./gradlew build compiles code correctly
  • Added new tests where applicable
  • ./gradlew test passes all tests
  • Extended README or added javadocs where applicable

Copy link

github-actions bot commented Jun 15, 2024

Test Results

520 tests  ±0   514 ✅ ±0   7m 24s ⏱️ -43s
135 suites ±0     6 💤 ±0 
135 files   ±0     0 ❌ ±0 

Results for commit 656c7ef. ± Comparison against base commit d773089.

♻️ This comment has been updated with latest results.

@sundargates sundargates had a problem deploying to Integrate Pull Request June 15, 2024 02:06 — with GitHub Actions Failure
logger.info("initializing {}", computation.getClass().getCanonicalName());
computation.init(context);

// from groups to observable
final Func2<Context, Observable<T>, Observable<R>> c
= (Func2<Context, Observable<T>, Observable<R>>) computation;

if (concurrency == StageConfig.DEFAULT_STAGE_CONCURRENCY) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

In this original code, if the concurrency is 1, then you don't need to do a groupBy and flatMap. Which may be more efficient. I feel we should keep that.

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.

2 participants