Closed simonepri closed 5 years ago
@nelsonic ?
Closing in favour of https://github.com/simonepri/pidtree
@simonepri this PR looks great. โ Sorry I did not respond earlier, โ๏ธ I do not have access to NPM to publish a new version of the package ๐ซ hence not wanting to give "false hope" that your changes would be published in a new version ... ๐ Good on you for taking matters into your own hands and with your own package. ๐
Hi @nelsonic, no problem. We discussed it here: https://github.com/indexzero/ps-tree/issues/30
Cherry-picked into #35 โย sorry for the delay in getting back to you on all this good work @simonepri. If you'd like to discuss merging pidtree
back into ps-tree
please lmk.
Changes
The use of an array is not suited for the job. An hash set is far better. This PR drastically reduces the complexity of the algorithm from O(n^2) to O(n)
@nelsonic @indexzero @zixia @soyuka