WSL2 made me the SLOWEST Software Developer in the world! I didn’t know.

Поділитися
Вставка
  • Опубліковано 27 вер 2024
  • Whenever I run “yarn install”, I can go for a walk since it takes forever under the windows subsystem for Linux or #wsl2. But I fixed that and made #yarn on #WSL and yarn almost as fast as running native.
    stackoverflow....
    github.com/mic...
    github.com/mic...
    www.whitewater...
    www.aleksandrh...

КОМЕНТАРІ • 36

  • @Tuto1902
    @Tuto1902 Рік тому +92

    I found the video very interesting, having moved over to Windows 11 myself recently. If I may offer one small suggestion: I found the background music a bit distracting. Lowering the volume of the music track would make it less intrusive in future videos. But that's just my opinion. 👍

  • @ismbil
    @ismbil Рік тому +30

    The only solution I found to the slowness of WSL2 is using the correct file system. If you are working in Linux do not attempt to use files in windows system which is mounted in /mnt. If you are using Windows, the files you use should be stored in windows files system under /mnt/c ... In my case, I am coding with Pycharm in Windows and the project files are also in Windows, using WSL interpreter and no slowness issue anymore.

    • @GXC2356
      @GXC2356 Рік тому

      Yeah knew that recently but as for me I can't caz C doesn't have alot of space that needed to build ROM

    • @IonizedComa
      @IonizedComa 11 місяців тому +1

      The reason I've never worked in the /mnt directory is because file permissions and other stuff get a bit muddled up

  • @RenanDuarteHB11
    @RenanDuarteHB11 Рік тому +14

    haha you do the hardest thing, when i use the wsl, i always use the folders inside /home/dev or something like that... i never tried to go out on the path related on windows volumes , but I didn't know that either Sven, thanks

    • @L0wPressure
      @L0wPressure Рік тому +2

      They actually tell you that in vscode, I’m pretty sure.

    • @danielvega646
      @danielvega646 Рік тому

      @@L0wPressure And what happens when you're running npm packages? They still run slow.

    • @L0wPressure
      @L0wPressure Рік тому +2

      @@danielvega646 do you use Linux folders? If so try using pnpm or yarn, they are much faster anyway. This package managers can download dependencies in parallel.

  • @waperboy
    @waperboy Рік тому +27

    Good info, but next time skip the music - it is too loud and very distracting.

    • @ehm-wg8pd
      @ehm-wg8pd 10 місяців тому

      yeah the music is not even good!

  • @itsSujeetMahto
    @itsSujeetMahto Рік тому +2

    I learnt it the hard way. I was having the same issue, digged through all these articles (and even more) and finally bumped into that SOF page.

  • @echo-hotel
    @echo-hotel Рік тому +20

    Music too loud. Accent isn’t bad for an American listener but with the music I can’t handle it all, at least not today. Sorry…

    • @svenmalvik
      @svenmalvik  Рік тому +6

      I wish I could remove the music. You are totally right, thanks for the feedback.

    • @metamodern7648
      @metamodern7648 5 місяців тому +1

      @@svenmalvik hey man, I was just passing buy and here's an idea for you: if you really wish to do it, you can do one of the following:
      a. get audio track from your video, remove musing using AI, slap new audio onto video and reupload.(dunno how youtube works but there should be a way to reupload with keeping comments and likes, dunno).
      b. get audio track from your video, get the original music audio. shove them both into audacity, invert the sine wave of music video and squish two audio tracks together. Music will just cancel itself and there will be only your voice. Then reupload.
      I hope this will be helpful and you'll at least give it a try, cheers!

  • @bubbles581
    @bubbles581 8 місяців тому +1

    Ok thats great to know!! I have to use windows as my main OS for work and wsl2 has been a sanity saver. It actually makes me wish i had updated from win10 to win11 sooner 😅

  • @VeaceslavBARBARII
    @VeaceslavBARBARII 11 місяців тому +3

    I haven't noticed the music at all. O-o
    I've read the comments, people are complaining about the music.
    I've started the video again, and indeed, there is music on the background and is quite loud lol.
    It seems that my brain can filter out any noise when needed 😂

    • @ctako13
      @ctako13 11 місяців тому

      It is so bad, and with his voice, it makes it hard to listen to. Imagine having ADHD and watching these videos with loud background noise.

  • @malborocomun
    @malborocomun Рік тому +10

    Wsl2 is blazingly fast

  • @bombasticnonsense4247
    @bombasticnonsense4247 Рік тому +11

    Music bed is too loud

  • @riajikbal2938
    @riajikbal2938 Рік тому

    i was bit confused about wl2 and virtual box but now i got my answer

    • @TJBillion
      @TJBillion Місяць тому

      so what is your answer?

  • @SzTz100
    @SzTz100 Рік тому +7

    I left WSL a year ago, it's too slow and drove me mad. It just wasn't worth working on it.

    • @svenmalvik
      @svenmalvik  Рік тому +2

      Totally agree. Same here.

    • @libremercadoencrisiseconom2118
      @libremercadoencrisiseconom2118 Рік тому +1

      glad to hear that, we need Microsoft to work, to admit their OS kernel is useless, and move to Linux

    • @frackinfamous6126
      @frackinfamous6126 Рік тому +5

      WSL (Windows Subsystem for Linux) is a remarkably fast solution that significantly boosts the performance of my sluggish Windows laptop. Treating it as a Linux environment and refraining from running anything from the Windows file system is key. Personally, I avoid coding in a Windows environment altogether. Another advantage is that you can bypass the resource-intensive Docker Desktop by performing a WSL2 installation directly from the PowerShell command line. Look up the help options for guidance. During the installation, exclude both the distro and Docker Desktop components. Once the base WSL2 is installed, proceed to download your preferred Linux distribution from the command line instead of the Microsoft Store. Follow the provided commands to install the chosen distro. Pause here. Before moving forward, ensure you have the WSL extension in VS Code. However, be cautious not to let it install anything for you. Return to the PowerShell command line and execute WSL. Immediately navigate to the Linux ~ directory by using the CD command. You should be in your home/username directory or simply ~. This step addresses a significant issue, as WSL usually defaults to the mounted home folder in Windows. Now that you're in the Linux ~ directory, create folders like dev, projects, or build using the mkdir command. Quickly run 'code .' to launch the Linux VS Code server. Voila! I utilize Windows Terminal and, depending on my task, launch WSL2 directly in PowerShell, seamlessly transitioning into the Ubuntu bash environment within PowerShell. Alternatively, you can launch your chosen Ubuntu (or other) shell independently. Personally, I prefer the 22.04 bash with customizations. Windows Terminal allows you to set default behavior at startup and configure the starting folder to ~ for the Ubuntu (or your distro) tab. Then, with a single click on the pinned Terminal icon in the taskbar, you're instantly transported to a Linux kernel running bash within three seconds.

    • @martelljohnson7888
      @martelljohnson7888 Рік тому

      ​@@frackinfamous6126i would love to discuss this further your method is exactly what I'm reaching to achieve I'm integrating wsl2 with my hard drive wishing to avoid windows app store

    • @jann4577
      @jann4577 9 місяців тому +1

      I hadn't noticed something similar, since windows needs some resources itself you won't be able to get the same performance under full load compared to linux on its own. Since wsl runs on a level 1 hyperviser you shouldn't get worse performance compared to an non dedicated server. I would still be interested what you did to see performance impacts

  • @fulconandroadcone9488
    @fulconandroadcone9488 Рік тому

    And I was wondering how come that neo vim is slower in wsl compared to vscode

    • @urandurparthu1526
      @urandurparthu1526 Рік тому

      cause wsl dont use gpu neither integrated not dedicated its the distro(terminal) that uses gpu and all the linux apps on widows are operated by wsl
      you can see this if you open the task manager. Whenever a linux app is running it run via wsl
      no amout of plugins or tweaks gonna fix that unless microsoft release something like wsl with 3d acceleration, not for the distro but for wsl itself

    • @fulconandroadcone9488
      @fulconandroadcone9488 Рік тому

      @@urandurparthu1526 not sure why I would need 3d acceleration for cli programs,

  • @pinglocalhost
    @pinglocalhost 9 місяців тому +1

    The music is overpowering; you're voice hard to hear you.

  • @davidkeith423
    @davidkeith423 9 місяців тому

    Being hearing challenged, I had hard time hearing you. :(