Skip to content

Refactor LookupAccountSid P/Invoke in Process.cs - #9197

Merged
Dongbo Wang (daxian-dbw) merged 3 commits into
PowerShell:masterfrom
iSazonov:cleanup-win32native-process
Mar 27, 2019
Merged

Dongbo Wang (daxian-dbw) merged 3 commits into
PowerShell:masterfrom
iSazonov:cleanup-win32native-process

Conversation

@iSazonov

@iSazonov Ilya (iSazonov) commented Mar 22, 2019 •

Copy link
Copy Markdown
Collaborator

PR Summary

First commit. Remove unused code.
Second commit. Using StringBuilder in P/Invoke causes extra allocations and buffer copies. Use stackalloc.

PR Context

Related #9139

PR Checklist

@iSazonov Ilya (iSazonov) added this to the 6.3.0-preview.1 milestone Mar 26, 2019

@daxian-dbw Dongbo Wang (daxian-dbw) 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.

LGTM with one comment.

@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit 7dc17a3 into PowerShell:master Mar 27, 2019
@iSazonov
Ilya (iSazonov) deleted the cleanup-win32native-process branch March 27, 2019 06:17
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
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.

2 participants