Skip to content

Cleanups in command discovery - #10815

Merged
Ilya (iSazonov) merged 6 commits into
PowerShell:masterfrom
iSazonov:perf-command-discovery-1
Dec 3, 2019
Merged

Ilya (iSazonov) merged 6 commits into
PowerShell:masterfrom
iSazonov:perf-command-discovery-1

Conversation

@iSazonov

@iSazonov Ilya (iSazonov) commented Oct 17, 2019 •

Copy link
Copy Markdown
Collaborator

PR Summary

Some cleanups in the command discovery code after investigating a performance:

  • Remove unused code.
  • Enable nullable reference types in CommandPathSearch.cs.
  • Add tests for discovery native commands.
  • Reduce allocations in GetAliasTable().
  • Remove searching by extensions (ignore PATHEXT environment variable) on Unix

PR Context

Related to #6577.

PR Checklist

@iSazonov
Ilya (iSazonov) force-pushed the perf-command-discovery-1 branch from 68d64dd to 581670f Compare October 17, 2019 10:08
@iSazonov
Ilya (iSazonov) force-pushed the perf-command-discovery-1 branch from fe736e5 to c4554bc Compare October 21, 2019 12:08
@iSazonov
Ilya (iSazonov) force-pushed the perf-command-discovery-1 branch from c4554bc to 1cb0ea6 Compare November 19, 2019 09:30
@iSazonov Ilya (iSazonov) changed the title WIP: Performance improvements in command discovery Performance improvements in command discovery Nov 19, 2019
@iSazonov Ilya (iSazonov) added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Nov 19, 2019
@iSazonov Ilya (iSazonov) changed the title Performance improvements in command discovery Cleanups in command discovery Nov 19, 2019
@iSazonov Ilya (iSazonov) self-assigned this Nov 19, 2019

@SteveL-MSFT Steve Lee (SteveL-MSFT) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One NIT for consistency

@iSazonov Ilya (iSazonov) added this to the 7.1.0-preview.1 milestone Dec 3, 2019
@iSazonov
Ilya (iSazonov) force-pushed the perf-command-discovery-1 branch from 14f7a30 to 31ef215 Compare December 3, 2019 05:03
@iSazonov
Ilya (iSazonov) force-pushed the perf-command-discovery-1 branch from a070d2c to be15c40 Compare December 3, 2019 05:51
@iSazonov
Ilya (iSazonov) force-pushed the perf-command-discovery-1 branch from be15c40 to 0e95719 Compare December 3, 2019 05:59
@iSazonov

Copy link
Copy Markdown
Collaborator Author

Fix HelpUri for Stop-Computer to pass CIs on Unix.

@iSazonov
Ilya (iSazonov) merged commit 42f21ae into PowerShell:master Dec 3, 2019
@iSazonov
Ilya (iSazonov) deleted the perf-command-discovery-1 branch December 3, 2019 06:23
@ghost

Copy link
Copy Markdown

🎉v7.1.0-preview.1 has been released which incorporates this pull request.:tada:

Handy links:

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
* Enable nullable, make minor cleanups, add a test
* Reduce allocations in GetAliasTable()
* Remove searching by extensions on Unix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants