8000 Refactor LookupAccountSid P/Invoke in Process.cs by iSazonov · Pull Request #9197 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Refactor LookupAccountSid P/Invoke in Process.cs #9197

Merged
daxian-dbw merged 3 commits intoPowerShell:masterfrom
iSazonov:cleanup-win32native-process
Mar 27, 2019
Merged

Refactor LookupAccountSid P/Invoke in Process.cs #9197
daxian-dbw merged 3 commits intoPowerShell:masterfrom
iSazonov:cleanup-win32native-process

Conversation

@iSazonov
Copy link
Collaborator
@iSazonov iSazonov commented Mar 22, 2019

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 iSazonov added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Mar 22, 2019
@daxian-dbw daxian-dbw self-assigned this Mar 25, 2019
@iSazonov iSazonov added this to the 6.3.0-preview.1 milestone Mar 26, 2019
Copy link
Member
@daxian-dbw daxian-dbw left a comment

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 daxian-dbw merged commit 7dc17a3 into PowerShell:master Mar 27, 2019
@iSazonov iSazonov deleted the cleanup-win32native-process branch March 27, 2019 06:17
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

0