commit | 7556e5d4bab656d4357204fb8772bdc9fe387e58 | [log] [tgz] |
---|---|---|
author | Giampaolo Rodola <g.rodola@gmail.com> | Wed Apr 17 15:01:29 2024 |
committer | GitHub <noreply@github.com> | Wed Apr 17 15:01:29 2024 |
tree | 89bec973fc0156a08b47dcf02d3e7088351b0d9e | |
parent | 5a3d56be329559e9aa06e44680da312986c1b9fa [diff] |
Speedup process iter (don't check for PID reuse) (#2404) 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.