Skip to content

Implement a cache for psutil.process_iter() #287

Closed
@giampaolo

Description

From g.rodola on June 19, 2012 21:48:05

Currently process_iter() creates a new Process instance every time is used.
Now that we cache certain process information ( issue 283 ) it seems natural to 
implement a cache also process_iter().

Other than making process_iter() faster, an internal cache can also help users 
which no longer have to maintain a list/map of process instances in their code, 
as we currently do in examples/top.py: 
https://code.google.com/p/psutil/source/browse/tags/release-0.4.1/examples/top.py#74
 This is now committed in r1355 .

Original issue: http://code.google.com/p/psutil/issues/detail?id=287

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions