Comments (6)
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.
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.
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.
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.
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.
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)
- Certificate error when fetching from the source repository on Debian HOT 1
- wslfetch prints errors with powershell 7.3 HOT 6
- Certificat expired on https://wslutiliti.es HOT 2
- `wslview` outputting errors from reg.exe HOT 7
- Arch keyring package signing key has expired HOT 8
- PGP key for ArchLinux no longer matches install instructions. HOT 1
- [Feature request] Add expections in wslview HOT 1
- wget fails, Certificate not trusted, no known issuer HOT 2
- wslview unable to open links with square bracket
- wslfetch requires sudo HOT 1
- wslupath should not be deprecated
- Document how to get the latest wslu HOT 1
- Inconsistent wslpath output for Windows drives that exist and those that don't exist HOT 2
- USE XDG_CACHE instead of ~/.config/wslu HOT 1
- wslview fails when registry access is disabled HOT 4
- OpenSUSE Tumbleweed does not set path.
- Syntax error in wslfetch and wslsys HOT 3
- file uri not decoded by wslview HOT 1
- Cannot set property. Property setting is supported only on core types in this language mode. HOT 3
- No Fedora 39 package built for Fedora 39 chroots (in COPR). HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wslu.