8000 Minor cleanups in Process.cs by iSazonov · Pull Request #9195 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Minor cleanups in Process.cs#9195

Merged
iSazonov merged 2 commits intoPowerShell:masterfrom
iSazonov:cleanup-process
Mar 23, 2019
Merged

Minor cleanups in Process.cs#9195
iSazonov merged 2 commits intoPowerShell:masterfrom
iSazonov:cleanup-process

Conversation

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

PR Summary

  • Use string.Join - it is currently fast and involves no extra allocation except for the result string.
  • Use char consts instead of one char strings

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
Copy link
Contributor
@RDIL RDIL left a comment

Choose a reason for hiding this comment

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

Looks good to me

@iSazonov iSazonov self-assigned this Mar 23, 2019
@iSazonov iSazonov merged commit a47c1b3 into PowerShell:master Mar 23, 2019
@iSazonov iSazonov deleted the cleanup-process branch March 23, 2019 04:46
@daxian-dbw
Copy link
Member
daxian-dbw commented Mar 23, 2019

Use string.Join - it is currently fast and allocation-free.

👍 minor nit: it's not allocation free, but guarantees that no extra allocation is needed other than the result string. I updated the PR description.

@iSazonov iSazonov added this to the 6.3.0-preview.1 milestone Mar 25, 2019
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.

4 participants

0