Giter Club home page Giter Club logo

Comments (5)

ad-oliviero avatar ad-oliviero commented on June 19, 2024

I know, it's even worse on slower PCs (on the slowest system I own, it takes as long as 20 seconds). It definitely needs optimization, I'm not an expert in optimizing programs, but I think that it could be useful to use multiple threads for getting info.

from uwufetch.

dqnk avatar dqnk commented on June 19, 2024

(on the slowest system I own, it takes as long as 20 seconds).

But is that with ASCII art or with viu images? It would be possible to make parts of this program multi threaded, but the main reason why this is slower than paleofetch or fastfetch and can't be insanely optimized as I see it is that it supports so many different systems, not just GNU/Linux on Xorg.

from uwufetch.

ad-oliviero avatar ad-oliviero commented on June 19, 2024

But is that with ASCII art or with viu images?

Just ASCII art:
obviously not my main system, not even my 4th

the main reason why this is slower than paleofetch or fastfetch and can't be insanely optimized as I see it is that it supports so many different systems, not just GNU/Linux on Xorg.

Also there are too many if statements (96 to be precise) and I am pretty sure that this also affects performance.

from uwufetch.

Guaxinim5573 avatar Guaxinim5573 commented on June 19, 2024

After testing, I saw that pkgman function is the slowest one.
After commenting line 645, this is the result.
image
Both compiled with cc.

EDIT:
Running the same test a few times, and including fastfetch in the results.
image
Without pkgman function, uwufetch is twice as fast as the latest one but still not as fast as fastfetch.

from uwufetch.

ad-oliviero avatar ad-oliviero commented on June 19, 2024

That's a nice result, but on my laptop commenting the same line, I get almost no difference and I don't know why

from uwufetch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.