-
Notifications
You must be signed in to change notification settings - Fork 41
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
windows compatibility #10
Comments
Test passed on Win10/7 |
Did you have a look at the wintools module? At least on my computer, it returns data much faster than your module. Seems like the command it uses
is faster than
|
So far, the only caveat I found is that the resulting output sometimes isn't valid CSV. E.g. if the command line contains commas, it doesn't escape them anyhow. So some heuristics are needed to parse it. |
@thorn0 thanks for sharing this information, will take a look! |
This is an interesting find indeed. I did a basic test and concluded that the reason why this is faster is the /format:csv part of the code. I compared The CSV formatting really speeded things up. @thorn0 or @neekey If you guys want to test, try this:
versus
I may submit a PR to switch to using the CSV formatting. Will need to address the commas issue in command line. |
More windows compatibility test work should be done, refer to ps-list by @sindresorhus, I should take a look at tasklist
The text was updated successfully, but these errors were encountered: