mirror of
https://github.com/nushell/nushell
synced 2025-01-05 17:58:57 +00:00
b93b80ccaa
The ps plugin has an unnecessary call to `std:🧵:sleep(500ms)` that delays runtime by 500ms. Additionally, there is a call to `sysinfo::SystemExt::refresh_process`, which is not required as the previous call to sysinfo::SystemExt::refresh_all handles the "refresh" of all processes without a need to do this individually. Combining both of these improvements means that running ps runs nearly instentaneously. Fixes #3402 |
||
---|---|---|
.. | ||
nu | ||
lib.rs | ||
main.rs | ||
ps.rs |