No longer make process_iter() check whether PID has been reused. This makes it around 20x times faster on Linux. Also changed Process.is_running() so that it will automatically remove the reused PID from process_iter() internal cache. In addition, also add a new process_iter.cache_clear() API.
Summary
Description
No longer make
process_iter()
check whether PID has been reused. This makes it around 20x times faster on Linux. Also changedProcess.is_running()
so that it will automatically remove the reused PID fromprocess_iter()
internal cache. In addition, also add a newprocess_iter.cache_clear()
API.