Skip to content

Revert the PR "Make ForEach-Object faster for its commonly used scenarios" - #10485

Merged
Dongbo Wang (daxian-dbw) merged 2 commits into
masterfrom
revert-10454-foreach
Sep 5, 2019
Merged

Revert the PR "Make ForEach-Object faster for its commonly used scenarios"#10485
Dongbo Wang (daxian-dbw) merged 2 commits into
masterfrom
revert-10454-foreach

Conversation

@daxian-dbw

@daxian-dbw Dongbo Wang (daxian-dbw) commented Sep 4, 2019

Copy link
Copy Markdown
Member

Reverts #10454

It turns out this optimization brings in a breaking change (see #10477 (comment)): $MyInvocation is different comparing to before the optimization change. I tried to fix the breaking change, but couldn't without introducing more hacky code. Given that, that PR should be reverted.

@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit f6c220c into master Sep 5, 2019
@daxian-dbw
Dongbo Wang (daxian-dbw) deleted the revert-10454-foreach branch September 5, 2019 05:12
@adityapatwardhan Aditya Patwardhan (adityapatwardhan) added the CL-NotInBuild Indicates that a PR is reverted and not part of the build. label Sep 5, 2019
Travis Plunk (TravisEz13) pushed a commit to TravisEz13/PowerShell that referenced this pull request Sep 14, 2019
…narios" (PowerShell#10485)

It turns out this optimization brings in a breaking change: `$MyInvocation` is different comparing to before the optimization change. I tried to fix the breaking change, but couldn't without introducing more hacky code. Given that, that PR should be reverted.
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
…narios" (PowerShell#10485)

It turns out this optimization brings in a breaking change: `$MyInvocation` is different comparing to before the optimization change. I tried to fix the breaking change, but couldn't without introducing more hacky code. Given that, that PR should be reverted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-NotInBuild Indicates that a PR is reverted and not part of the build.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants