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

[610] Improved process_iter #2279

Merged

Conversation

Rixxan
Copy link
Contributor

@Rixxan Rixxan commented Jul 29, 2024

Description

psutils 6.0 added a new change to process_iter which improves performance substantially to the point where it is now actually worth using. The function no longer checks whether each yielded process PID has been reused per PSUtils docs, which generates an ~20x speed-up to use, which actually makes it worth using versus iterating through functions. This shaves almost half a second off of my testing, meaning less app freezes and a better working check.

Type of Change

Enhancement

How Tested

Tested and timed on my system running from source

Notes

giampaolo/psutil#2396

Significant speed-up. Around 20x in psutils 6.0!
@Rixxan Rixxan added enhancement code cleanup Cleaning up code dependencies Pull requests that update a dependency file labels Jul 29, 2024
@Rixxan Rixxan added this to the 5.12 milestone Jul 29, 2024
@Rixxan Rixxan self-assigned this Jul 29, 2024
@Rixxan Rixxan merged commit 4857361 into EDCD:develop Aug 13, 2024
3 checks passed
@Rixxan Rixxan deleted the enhancement/610/improved-process-iter branch August 13, 2024 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Cleaning up code dependencies Pull requests that update a dependency file enhancement
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

1 participant