-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Implement ForEach-Object -Parallel feature #10229
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
Merged
adityapatwardhan
merged 27 commits into
PowerShell:master
from
PaulHigin:foreach-parallel-B
Aug 13, 2019
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
826ae77
Some refactoring to accomodate parallel processing
PaulHigin 8bd9fd5
Incremental work 1
PaulHigin 88719f3
Work in progress
PaulHigin 12c577f
Completed initial sync implementation
PaulHigin 546fcce
Added basic tests for synchronous mode
PaulHigin 264520b
Add script block errors and more tests
PaulHigin d49e9de
Add as experimental feature
PaulHigin 4be015f
Add AsJob implementation
PaulHigin 16140c9
Add AsJob tests
PaulHigin 61e5fd9
Code clean up and a couple new tests
PaulHigin 675aea2
Fix test. Move event callback outside lock.
PaulHigin 44e4e7d
Add skip when experimental feature is not enabled
PaulHigin d26aff3
Code clean up. Fix taskpool Add block to allow data stream writing du…
PaulHigin 17c181b
Initialize dollarUnder variable to correct null value
PaulHigin 2ce7067
Some code clean up
PaulHigin b87c518
Fix style issues
PaulHigin fd158e0
Remove ScriptBlock parameter and converted Parallel switch parameter …
PaulHigin 08b3291
Address PR comments
PaulHigin e434887
Clean up comments based on Codacy and CodeFactor
PaulHigin 1ff1155
More code clean up. Use newer syntax for properties.
PaulHigin cb72fa7
Response to PR comments
PaulHigin 644eead
Response to PR review comments
PaulHigin af0cbe9
Add error for unsupported common parameters
PaulHigin 062f5b0
Remove global var conflict with other test
PaulHigin e31cdf6
Fix CodeFlow comments
PaulHigin 466ba4a
Another attempt to address style issues
PaulHigin 86dd9a5
More style changes
PaulHigin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,6 +108,9 @@ static ExperimentalFeature() | |
| new ExperimentalFeature( | ||
PaulHigin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
PaulHigin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
PaulHigin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
PaulHigin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
PaulHigin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
PaulHigin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
PaulHigin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
PaulHigin marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| name: "PSCommandNotFoundSuggestion", | ||
| description: "Recommend potential commands based on fuzzy search on a CommandNotFoundException"), | ||
| new ExperimentalFeature( | ||
| name: "PSForEachObjectParallel", | ||
| description: "New parameter set for ForEach-Object to run script blocks in parallel") | ||
| }; | ||
| EngineExperimentalFeatures = new ReadOnlyCollection<ExperimentalFeature>(engineFeatures); | ||
|
|
||
|
|
||
933 changes: 601 additions & 332 deletions
933
src/System.Management.Automation/engine/InternalCommands.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.