Title: Quadratic behavior during tab completion · Issue #13432 · PowerShell/PowerShell · GitHub
Open Graph Title: Quadratic behavior during tab completion · Issue #13432 · PowerShell/PowerShell
X Title: Quadratic behavior during tab completion · Issue #13432 · PowerShell/PowerShell
Description: Steps to reproduce Open procmon and filter only syscall made by pwsh.exe, cd C:/a/directory/with/lots/of/files cd
Open Graph Description: Steps to reproduce Open procmon and filter only syscall made by pwsh.exe, cd C:/a/directory/with/lots/of/files cd
X Description: Steps to reproduce Open procmon and filter only syscall made by pwsh.exe, cd C:/a/directory/with/lots/of/files cd <tab> Notice how pwsh.exe attempts to list all the files in C:/, then C:/a, t...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/13432
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Quadratic behavior during tab completion","articleBody":"## Steps to reproduce\r\n\r\nOpen procmon and filter only syscall made by pwsh.exe,\r\n\r\n```powershell\r\ncd C:/a/directory/with/lots/of/files\r\ncd \u003ctab\u003e\r\n```\r\n\r\nNotice how pwsh.exe attempts to list all the files in C:/, then C:/a, then C:/directory, etc, for every directory present in C:/a/directory/with/lots/of/files. Assuming this is a pretty large directory, tab completion could take a very long time.\r\n\r\nScreenshot of procmon:\r\n\r\n\r\nI have a feeling #12795 might be related to this issue.\r\n\r\n## Expected behavior\r\n\r\npwsh.exe should only be listing files/directory once in CWD to do the tab completion. This doesn't reproduce with PowerShell 5.1.\r\n\r\nScreenshot of procmon:\r\n\r\n\r\n## Environment data\r\n\r\n```\r\n% $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 7.0.3\r\nPSEdition Core\r\nGitCommitId 7.0.3\r\nOS Microsoft Windows 10.0.19041\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/xavierd","@type":"Person","name":"xavierd"},"datePublished":"2020-08-14T05:57:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/13432/PowerShell/issues/13432"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:78e06ff5-b201-b4c4-708b-0ae212e367fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9024:CE13C:998285:E01B52:6A57939F |
| html-safe-nonce | 85d0ba52d9de5bd404c76eed54b6fb279e6e91a8f27b570c8ce31a586878f2ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDI0OkNFMTNDOjk5ODI4NTpFMDFCNTI6NkE1NzkzOUYiLCJ2aXNpdG9yX2lkIjoiODI3MTAwNzgyNDM3NDg5NTUxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0426188cefbd356719ed5910f5d818104dc68eba0abdaee1551004648a997ceb |
| hovercard-subject-tag | issue:678920771 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/13432/issue_layout |
| twitter:image | https://opengraph.githubassets.com/844587a53a6f0c021dab1d4ba30de85343bb9002689198a6619177c40175e7c9/PowerShell/PowerShell/issues/13432 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/844587a53a6f0c021dab1d4ba30de85343bb9002689198a6619177c40175e7c9/PowerShell/PowerShell/issues/13432 |
| og:image:alt | Steps to reproduce Open procmon and filter only syscall made by pwsh.exe, cd C:/a/directory/with/lots/of/files cd |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xavierd |
| hostname | github.com |
| expected-hostname | github.com |
| None | a87fc68e9bdf22e1c7e48ac6a60b98882f4bb103314b3f26b3460c61fc5441ae |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a2198d0212ed703af207673eb4d0868d4f867a5b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width