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

Speedup process iter #2404

Merged
merged 8 commits into from Apr 17, 2024
Merged

Speedup process iter #2404

merged 8 commits into from Apr 17, 2024

Conversation

giampaolo
Copy link
Owner

Summary

  • OS: all
  • Bug fix: no
  • Type: performance, new-api
  • Fixes: 2396

Description

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.

@giampaolo giampaolo merged commit 7556e5d into master Apr 17, 2024
24 of 28 checks passed
@giampaolo giampaolo deleted the speedup-process-iter branch April 17, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant