Closed GoogleCodeExporter closed 8 years ago
I see no obvious way to speed this up as you're forced to retrieve ppid for all
processes no matter what.
As for your suggestion: except perhaps for Windows (I should double check)
there's no operating system providing a system call to retrieve all pid's ppid
in one shot: you're forced to iterate over all processes.
Original comment by g.rodola
on 6 Aug 2013 at 2:16
I'm going to close this out as invalid.
Original comment by g.rodola
on 25 Aug 2013 at 10:56
>> get all pid's ppid in one system call rather than per pid.
> you're forced to retrieve ppid for all processes no matter what.
It turns out retrieving all parent pids in one call on Windows it was possible
after all. I just didn't remember how ppid() was implemented on Windows.
get_children() is now an order of magnitude faster (+20x or something like
that).
Committed in revision 32ca76279dce.
Original comment by g.rodola
on 7 Sep 2013 at 12:33
Original comment by g.rodola
on 28 Sep 2013 at 10:06
Closing out as fixed. Release 1.1.0 is now available for download.
Original comment by g.rodola
on 28 Sep 2013 at 5:32
Original issue reported on code.google.com by
lisongm...@gmail.com
on 3 Aug 2013 at 12:08