Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use wmic to get process list on Windows #3808

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

levrik
Copy link
Contributor

@levrik levrik commented Jan 15, 2018

  • powershell -Command "Get-Process | Select-Object Path": ~1300ms (current implementation)
  • Get-Process | Select-Object Path on already running PowerShell daemon/agent: ~300ms (implementation in Speed up editor detection on Windows #2711)
  • wmic process where "executablepath is not null" get executablepath: ~110ms (this implementation)

For comparison on other platforms:

  • ps x on macOS: ~60ms

@levrik
Copy link
Contributor Author

levrik commented Jan 15, 2018

CI failure seems to be unrelated to this PR.

@gaearon
Copy link
Contributor

gaearon commented Jan 15, 2018

Yea, sorry, sorting it out

@gaearon gaearon added this to the 2.0.0 milestone Jan 16, 2018
@levrik levrik force-pushed the win-detect-editor-wmic branch 2 times, most recently from 06082c5 to 45707e1 Compare January 16, 2018 19:09
@gaearon gaearon merged commit 346ea1c into facebook:next Jan 17, 2018
@gaearon
Copy link
Contributor

gaearon commented Jan 17, 2018

This is great, thank you!

@levrik levrik deleted the win-detect-editor-wmic branch January 17, 2018 19:57
akstuhl pushed a commit to akstuhl/create-react-app that referenced this pull request Mar 15, 2018
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants