From 852e4e56b6fed65c9ad5bea4576a318c9404479c Mon Sep 17 00:00:00 2001 From: Adrian Groh Date: Tue, 16 May 2023 10:49:31 +0200 Subject: [PATCH] chore: fast RPM package count on openSUSE (libmacchina 7.1.0) This requires the `rpm-devel` package to be installed --- Cargo.toml | 2 +- README.md | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 086ebe8..a9ee9cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ globset = "0.4.10" dotenvy = "0.15.6" glob = "0.3.1" which = "4.4.0" -libmacchina = "7" +libmacchina = "7.1.0" crossterm = "0.26.1" [profile.release] diff --git a/README.md b/README.md index 235c980..c0b2748 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@ If you want a logo to be added, feel free to open an issue or a PR. ## Installation +_Note: On openSUSE, install the `rpm-devel` package for faster package count._ + ### Binary Download a binary from the @@ -74,10 +76,11 @@ managers. For more info, see [Improving Performance](#imp_perf)._ The by far slowest part of the `pfetch` execution time is counting the installed packages. For most package managers this is still very fast, but there are some -(currently `nix` and `zypper`) that take ~500ms to report installed packages, -which takes away all performance benefits of the Rust version. If you have one -or more of these installed, you can skip counting them by setting the -`PF_FAST_PKG_COUNT` environment variable. +(currently `nix` (and `zypper`, if `rpm-devel` is not installed)) that take +~500ms to report installed packages, which takes away all performance benefits +of the Rust version. If you have one or more of these installed, you can skip +counting them by setting the `PF_FAST_PKG_COUNT` environment variable to any +value. ## Configuration