diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-12-11 19:54:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-11 19:54:02 -0500 |
commit | 8c4ad90e6756a006243f04033ae9bd9bc9e2f095 (patch) | |
tree | 1e189aea1cb5f497ee7207c184528e77a82c2c01 /Cargo.lock | |
parent | 86135e466ce437de5fd767b29fad9acae29cef93 (diff) |
refactor: Another small optimization pass (#350)
Making some small changes that would hopefully improve performance a bit.
- Remove redundant string generations for CPU data conversion
- Switch to fnv for PID hashmap and hashsets
- Use buffered reading to avoid having to store too many lines as strings
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -121,6 +121,7 @@ dependencies = [ "ctrlc", "dirs-next", "fern", + "fnv", "futures", "heim", "indexmap", @@ -390,6 +391,12 @@ dependencies = [ ] [[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] name = "futures" version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" |