wails: Wails dev/build very slow on Windows compared to MacOS/Linux

Description

Basically what the title says, go mod tidy takes longer, as does everything else, so the development loop is very very slow compared to Linux or MacOS.

To Reproduce

Build your app on Windows

Expected behaviour

Build time should be similar or at least much less than it is on Windows.

Screenshots

No response

Attempted Fixes

No response

System Details

WebView2   | N/A          | Installed | 111.0.1661.54
npm        | N/A          | Installed | 9.5.0
*upx       | N/A          | Available |
*nsis      | N/A          | Available |
* - Optional Dependency

# Diagnosis

Your system is ready for Wails development!
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

Additional context

No response

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 23 (10 by maintainers)

Most upvoted comments

Just noticed that MsMpEng.exe (Windows Defender) starts running when I save app.go… after deactivating it, went from ~30s to ~8s. Still not ideal, but it helps…

I can confirm, build went down from ~60s to 10s, and dev from 33s to to 22s

Although I didn’t disabled Windows Defender, I just added go process to the exclusion list : Windows Defender > Exclusions > Add an exclusion > Process > C:\Program Files\Go\bin\go.exe And while I’m at it I added VSCode and Node.

Note : It’s important to add the exclusion as a Process and not a File so it excludes any child process that Go spawns, adding it as a file/folder exclusion didn’t give the same results.

DISCLAIMER : DO IT AT YOUR OWN RISK

I started using Wails today, and it was taking ~30s to reload changes on app.go…

Just noticed that MsMpEng.exe (Windows Defender) starts running when I save app.go… after deactivating it, went from ~30s to ~8s. Still not ideal, but it helps…

Other info: Windows 10 Wails CLI v2.5.1 WebView2 114.0.1823.51 Nodejs 16.13.2 npm 8.1.2 Template: https://github.com/mateothegreat/wails-template-angular