GithubHelp home page GithubHelp logo

Comments (6)

paulstelian97 avatar paulstelian97 commented on May 12, 2024

I've put in some prints between the lines in wslsys and apparently the lines that run Powershell take a full half-second to run. I will try to devise ways to call cmd.exe instead (and reg query commands) to make it faster. If I succeed, I'll bring up a pull request.

from wslu.

patrick330602 avatar patrick330602 commented on May 12, 2024

I believe this is the existing problem for wslfetch, as it doesn't cache information as neofetch or screenfetch. the performance using powershell.exe and reg.exe is actually pretty similar.

from wslu.

paulstelian97 avatar paulstelian97 commented on May 12, 2024

So it means that it's something specific to my system that the performance with powershell.exe is much worse? Considering the same number of calls to a Windows executable (either powershell or reg) from my patch it definitely makes a difference on my system. Does it not on yours?

from wslu.

patrick330602 avatar patrick330602 commented on May 12, 2024

Interesting. I will do another test on virtual machine just for that. I don't want to get into "It works on my machine" situation.

from wslu.

paulstelian97 avatar paulstelian97 commented on May 12, 2024

Do try to limit CPU performance (my old laptop had i3-5005u and it took even more than that half-second for Powershell to launch, my current personal laptop has an i5-8250u and still takes that half-second to launch, my work laptop has some i7 [HQ category] and Powershell starts before the window launch animation ends).

from wslu.

patrick330602 avatar patrick330602 commented on May 12, 2024

You are right, on a computer that is not that powerful, the two commands showed a huge speed difference. there's still a little bit things to modify in your PR

from wslu.

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.