PFZheng / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Implement a cache for psutil.process_iter() #287

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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:
http://code.google.com/p/psutil/source/browse/tags/release-0.4.1/examples/top.py
#74

This is now committed in r1355.

Original issue reported on code.google.com by g.rodola on 19 Jun 2012 at 7:48

GoogleCodeExporter commented 8 years ago
0.5.0 is finally out. Closing out as fixed.

Original comment by g.rodola on 27 Jun 2012 at 6:54

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r1355 == revision ???

Original comment by g.rodola on 2 Mar 2013 at 12:09