| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/*id(.:format) |
| route-controller | pull_requests |
| route-action | show |
| fetch-nonce | v2:b5e789f7-1734-d534-2a76-8e3ed19af402 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D3D0:2BB463:BACF53:10251F5:6AFD42E3 |
| html-safe-nonce | 7bb76a1f3abd0b1e4f53985f3dace05d7fb1c71b8b56d3e66e7d3cf5eb409549 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0QwOjJCQjQ2MzpCQUNGNTM6MTAyNTFGNTo2QUZENDJFMyIsInZpc2l0b3JfaWQiOiI0NzkzNzM3MDY5NTgwODYyMTc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 31480c5de44a06d8af53737727473bd23b35c42d82e441f6467cc825794b5612 |
| hovercard-subject-tag | pull_request:124649121 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/3969 |
| twitter:image | https://opengraph.githubassets.com/0b80d636c35f7c224ba55dce928e1a54d57bf3eb1f7808e3e2f4e3957a98a6c8/PowerShell/PowerShell/pull/3969 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b80d636c35f7c224ba55dce928e1a54d57bf3eb1f7808e3e2f4e3957a98a6c8/PowerShell/PowerShell/pull/3969 |
| og:image:alt | Motivation
We call Utils.GetApplicationBase() multiple times at startup and later so we need cache the one to exclude a reflection.
Fix
Add a static getter-only property named DefaultPowerShellApp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iSazonov |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-cache |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/PowerShell/PowerShell/pull/3969#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F3969 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F3969 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow&source=header-repo&source_repo=PowerShell%2FPowerShell |
| Reload | https://github.com/PowerShell/PowerShell/pull/3969 |
| Reload | https://github.com/PowerShell/PowerShell/pull/3969 |
| Reload | https://github.com/PowerShell/PowerShell/pull/3969 |
| PowerShell | https://github.com/PowerShell |
| PowerShell | https://github.com/PowerShell/PowerShell |
| Code | https://github.com/PowerShell/PowerShell |
| Issues1.3k (1.3k) | https://github.com/PowerShell/PowerShell/issues |
| Pull requests364 (364) | https://github.com/PowerShell/PowerShell/pulls |
| Discussions | https://github.com/PowerShell/PowerShell/discussions |
| Actions | https://github.com/PowerShell/PowerShell/actions |
| Projects | https://github.com/PowerShell/PowerShell/projects |
| Security and quality3 (3) | https://github.com/PowerShell/PowerShell/security |
| Insights | https://github.com/PowerShell/PowerShell/insights |
| https://github.com/PowerShell/PowerShell |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| iSazonov:cache-for-getapplicationbase | https://github.com/iSazonov/PowerShell/tree/cache-for-getapplicationbase |
| Conversation | https://github.com/PowerShell/PowerShell/pull/3969 |
| Commits3 (3) | https://github.com/PowerShell/PowerShell/pull/3969/commits |
| Checks | https://github.com/PowerShell/PowerShell/pull/3969/checks |
| Files changed | https://github.com/PowerShell/PowerShell/pull/3969/files |
| Add cache for GetApplicationBase | https://github.com/PowerShell/PowerShell/pull/3969#top |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| iSazonov:cache-for-getapplicationbase | https://github.com/iSazonov/PowerShell/tree/cache-for-getapplicationbase |
|
| https://github.com/iSazonov |
| Ilya (iSazonov) | https://github.com/iSazonov |
| Jun 8, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#issue-234525766 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| https://github.com/msftclas |
| Microsoft Contribution License Agreements (msftclas) | https://github.com/msftclas |
|
cla-already-signed
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3Acla-already-signed |
| Jun 8, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#event-1115490601 |
| https://github.com/iSazonov |
| Ilya (iSazonov) | https://github.com/iSazonov |
|
Jun 8, 2017
| https://github.com/PowerShell/PowerShell/pull/3969#ref-pullrequest-234336124 |
|
shebang without .ps1 extension ends up in recursive loop calling powershell
#3963
| https://github.com/PowerShell/PowerShell/pull/3963 |
| https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| Andrew (anmenaga) | https://github.com/anmenaga |
| June 12, 2017 01:43 | https://github.com/PowerShell/PowerShell/pull/3969#event-1118723648 |
| https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| Jun 12, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#event-1118723759 |
| https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
|
Jun 20, 2017
| https://github.com/PowerShell/PowerShell/pull/3969#pullrequestreview-45004764 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/3969/files |
| src/System.Management.Automation/engine/Utils.cs | https://github.com/PowerShell/PowerShell/pull/3969/files#diff-08b9d853f19b7b63dfb6b0fa7b634db55f2a20aeed01ffb5855b3e5b0da3431b |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| Jun 20, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#discussion_r122853779 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| Ilya (iSazonov) | https://github.com/iSazonov |
| Jun 20, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#discussion_r122885590 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| src/System.Management.Automation/engine/Utils.cs | https://github.com/PowerShell/PowerShell/pull/3969/files#diff-08b9d853f19b7b63dfb6b0fa7b634db55f2a20aeed01ffb5855b3e5b0da3431b |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| Jun 20, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#discussion_r122853891 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| Ilya (iSazonov) | https://github.com/iSazonov |
| Jun 20, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#discussion_r122885602 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| src/System.Management.Automation/engine/Utils.cs | https://github.com/PowerShell/PowerShell/pull/3969/files#diff-08b9d853f19b7b63dfb6b0fa7b634db55f2a20aeed01ffb5855b3e5b0da3431b |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| Jun 20, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#discussion_r122853957 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| Ilya (iSazonov) | https://github.com/iSazonov |
| Jun 20, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#discussion_r122885642 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| Jun 20, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#issuecomment-309607082 |
| Ilya (@iSazonov) | https://github.com/iSazonov |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| Ilya (iSazonov) | https://github.com/iSazonov |
| June 20, 2017 09:32 | https://github.com/PowerShell/PowerShell/pull/3969#commits-pushed-be0747d |
|
| https://github.com/iSazonov |
| Add cache for GetApplicationBase | https://github.com/PowerShell/PowerShell/pull/3969/commits/be0747d043a720285e3d985efea6ed72d56c56fe |
| be0747d | https://github.com/PowerShell/PowerShell/pull/3969/commits/be0747d043a720285e3d985efea6ed72d56c56fe |
|
| https://github.com/iSazonov |
| Move to 'internal static string DefaultPowerShellAppBase' | https://github.com/PowerShell/PowerShell/pull/3969/commits/b06e43a81c68dea5c35f7131d2c863c0f803137e |
| b06e43a | https://github.com/PowerShell/PowerShell/pull/3969/commits/b06e43a81c68dea5c35f7131d2c863c0f803137e |
| https://github.com/iSazonov |
| Ilya (iSazonov) | https://github.com/iSazonov |
| force-pushed | https://github.com/PowerShell/PowerShell/compare/debbae4bc40db01478b95d219cc0c6e317378306..b06e43a81c68dea5c35f7131d2c863c0f803137e |
| debbae4 | https://github.com/PowerShell/PowerShell/commit/debbae4bc40db01478b95d219cc0c6e317378306 |
| b06e43a | https://github.com/PowerShell/PowerShell/commit/b06e43a81c68dea5c35f7131d2c863c0f803137e |
|
Compare
| https://github.com/PowerShell/PowerShell/compare/debbae4bc40db01478b95d219cc0c6e317378306..b06e43a81c68dea5c35f7131d2c863c0f803137e |
| June 20, 2017 06:34 | https://github.com/PowerShell/PowerShell/pull/3969#event-1130381904 |
| https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
|
Jun 20, 2017
| https://github.com/PowerShell/PowerShell/pull/3969#pullrequestreview-45206629 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/3969/files/b06e43a81c68dea5c35f7131d2c863c0f803137e |
| src/System.Management.Automation/engine/Utils.cs | https://github.com/PowerShell/PowerShell/pull/3969/files/b06e43a81c68dea5c35f7131d2c863c0f803137e#diff-08b9d853f19b7b63dfb6b0fa7b634db55f2a20aeed01ffb5855b3e5b0da3431b |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| Jun 20, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#discussion_r123039347 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| Ilya (iSazonov) | https://github.com/iSazonov |
| Jun 20, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#discussion_r123053606 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
|
| https://github.com/iSazonov |
| Remove extra 'if' block | https://github.com/PowerShell/PowerShell/pull/3969/commits/a0c867d1ab13da3905dc8510e982bba20b717e6d |
| a0c867d | https://github.com/PowerShell/PowerShell/pull/3969/commits/a0c867d1ab13da3905dc8510e982bba20b717e6d |
| https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
|
Jun 20, 2017
| https://github.com/PowerShell/PowerShell/pull/3969#pullrequestreview-45235954 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/3969/files/a0c867d1ab13da3905dc8510e982bba20b717e6d |
| https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| 598cebf | https://github.com/PowerShell/PowerShell/commit/598cebf7b2f0b5bb0b0add97c6393ccfaaa792f5 |
| Jun 20, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#event-1131896729 |
| https://github.com/iSazonov |
| Ilya (iSazonov) | https://github.com/iSazonov |
| June 21, 2017 05:34 | https://github.com/PowerShell/PowerShell/pull/3969#event-1132238570 |
| https://github.com/iSazonov |
| Ilya (iSazonov) | https://github.com/iSazonov |
| Jun 21, 2017 | https://github.com/PowerShell/PowerShell/pull/3969#issuecomment-309968259 |
| Dongbo Wang (@daxian-dbw) | https://github.com/daxian-dbw |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
| Thatgfsj (Thatgfsj) | https://github.com/Thatgfsj |
|
Aug 6, 2026
| https://github.com/PowerShell/PowerShell/pull/3969#ref-commit-b50fe7a |
|
| https://github.com/iSazonov |
|
| https://github.com/daxian-dbw |
| Add cache for GetApplicationBase ( | https://github.com/Thatgfsj-contribs/PowerShell/commit/b50fe7a4e5611ef610ba40ce82499297238fa552 |
| PowerShell#3969 | https://github.com/PowerShell/PowerShell/pull/3969 |
| ) | https://github.com/Thatgfsj-contribs/PowerShell/commit/b50fe7a4e5611ef610ba40ce82499297238fa552 |
| b50fe7a | https://github.com/Thatgfsj-contribs/PowerShell/commit/b50fe7a4e5611ef610ba40ce82499297238fa552 |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F3969 |
|
| https://github.com/daxian-dbw |
|
Dongbo Wang (daxian-dbw)
| https://github.com/daxian-dbw |
|
| https://github.com/PowerShell/PowerShell/pull/3969/files/a0c867d1ab13da3905dc8510e982bba20b717e6d |
|
| https://github.com/anmenaga |
|
Andrew (anmenaga)
| https://github.com/anmenaga |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
|
| https://github.com/daxian-dbw |
|
Dongbo Wang (daxian-dbw)
| https://github.com/daxian-dbw |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/3969 |
|
| https://github.com/iSazonov |
|
| https://github.com/daxian-dbw |
|
| https://github.com/msftclas |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |