commit | 4de04e83d7ff621062b8b5456a14f2f313a2639c | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Sat Mar 19 08:56:09 2016 -0700 |
committer | Rob Landley <rob@landley.net> | Sat Mar 19 20:42:36 2016 -0500 |
tree | bc9b46bc4e54094e5fa75b0dbf315f7df919d811 | |
parent | ada3c0876dc99b6b1ef457e06d271d3b933f9dd9 [diff] |
Make lsof 10x faster by caching /proc/net socket info. I deliberately didn't do this first time round because for me our lsof is already 10x faster than traditional lsof, and caching means we potentially give less information about a socket that's created while we're running. It turns out that traditional lsof caches anyway, so I guess nobody cares. This also fixes a mistake where lsof used CFG_FREE instead of CFG_TOYBOX_FREE.