hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.15k stars 90 forks source link

Delay when neowofetch reaches the 'packages' line in config. #246

Closed 216598762 closed 2 months ago

216598762 commented 3 months ago

Describe the bug

When it hits 'packages' in config, delays for about 3 seconds before completing.

Expected behavior

Continuous fluid output of the lines specified in config.

Screenshots

Hang image Complete image

Config

config.txt

Verbose log

neofetch.log Ran the command recommended but replaced neofetch with neowofetch. Running neofetch alone does not produce the bug.

Additional context

Using kitty backend, zsh, and neowofetch on endeavourOS. It successfully renders my image and all other portions at expected speed.

hykilpikonna commented 2 months ago

I see that you have 2 packages from pipx, 7 packages from npm, 1599 packages from pacman, 15 games on steam, 5 packages on flatpak. The sequence of commands that ran to get these results are:

pipx list --short
cargo install --list
npm list -g --depth=0
pacman -Qq --color never
ls /home/null/.local/share/Steam/steamapps/common/*/
flatpak list --system
flatpak list --user

I think it's just that you have a lot of package managers and it takes time to query each of them. I tested each of them, and none seems to be particularly slow (the slowest is npm, but still finishes in 1.57s wall time), and the total wall time seems to be only 1.85s.

image

Since I can't replicate the slow down, please measure the time it takes for your machine to run each of these commands by running time {command} and we'll see which package manager is the culprit.

hykilpikonna commented 2 months ago

Okay I optimized the npm query by not calling npm list. Should be faster now.

image

Honestly, if you are looking for speed maybe try using the fastfetch backend. Fastfetch is extremely fast compared to neofetch, but the cost is that it doesn't support a lot of package managers that we do (npm, pipx, cargo, and steam are all not supported).

image

image