ad-oliviero / uwufetch

A meme system info tool for Linux, based on nyan/uwu trend on r/linuxmasterrace.
GNU General Public License v3.0
737 stars 48 forks source link

Taking long time to execute #164

Closed NoozAbooz closed 2 years ago

NoozAbooz commented 2 years ago

I'm currently on WSL2 Debian, my PC doesn't have fabulous specs but the RAM and CPU usage was pretty low while I was running uwufetch. According to time, it took 2 minutes from running the command to getting a output!

image

ad-oliviero commented 2 years ago

On my wsl system uwufetch works just like any other distro, so I can't reproduce the issue. Maybe the slowness is caused by some command that uwufetch runs while getting info. Could you try to run every command in pkgman()? So if one of this commands is the problem you can report it.

NoozAbooz commented 2 years ago

apt was the only one that worked, and it only took a few seconds to execute

ad-oliviero commented 2 years ago

I'm sorry, I don't really know why it is slow on your system. You could try to find the issue with gdb (if you know how to use it) or just use the cache (set UWUFETCH_CACHE_ENABLED=1).

NoozAbooz commented 2 years ago

The slowness goes away when I run it with UWUFETCH_CACHE_ENABLED=1 uwufetch.

NoozAbooz commented 2 years ago

A side effect of this is that it won't read any args I put into it. eg, if I do uwufetch --help, it just shows me the regular uwufetch stuff with my stats and the OS art.

ad-oliviero commented 2 years ago

That's because when that env variable is enabled, uwufetch reads and prints the cache without parsing the arguments