[release/v7.5] Fix PSMethodInvocationConstraints.GetHashCode method by pwshBot · Pull Request #25306 · PowerShell/PowerShell

Backport of #24965 to release/v7.5

Triggered by @TravisEz13 on behalf of @crazyjncsu

Original CL Label: CL-General

/cc @PowerShell/powershell-maintainers

Impact

Choose either tooling or Customer impact.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Customer Impact

  • Customer reported
  • Found internally

Large amount of memory used in almost every method invocation.

Regression

  • Yes
  • No

7.4 - Performance regression.

[If yes, specify when the regression was introduced. Provide the PR or commit if known.]

Testing

No tests changed, because it's a perf issue not a functional issue

Risk

  • High
  • Medium
  • Low

[High/Medium/Low. Justify the indication by mentioning how risks were measured and addressed.]