Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WASM regression] Crazy long debug build times #19750

Open
mikernet opened this issue Mar 28, 2025 · 1 comment
Open

[WASM regression] Crazy long debug build times #19750

mikernet opened this issue Mar 28, 2025 · 1 comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/needs-information Indicates an issue needs more information in order to work on it. triage/untriaged Indicates an issue requires triaging or verification

Comments

@mikernet
Copy link
Contributor

mikernet commented Mar 28, 2025

Current behavior

WASM debug builds (or starting projects with/without debugging in VS) take a crazy long time for new projects, on the order of ~3 minutes on every build/launch for a blank new project. CPU usage is effectively 0 during the vast majority of this time. Monitoring the current msbuild task when doing dotnet build does not seem to indicate any one particular culprit - many of the WASM specific build tasks (generating JSON, generating assets, etc) take a very long time:

20250328-0616-31.7005845.mp4

This does not happen on older projects that started at version 5.2.x where I progressively incremented Uno version in global.json to latest - I can build and launch large applications in ~10 seconds. Downgrading Uno.Sdk version to 5.5.62 after creating a new project with the latest templates does not fix the issue.

Expected behavior

Should build quickly.

How to reproduce it (as minimally and precisely as possible)

See attached project, which was created using latest Uno templates with only had a couple minor changes: TestUno.zip. Do dotnet build or start with/without debugging in VS and notice it takes a few minutes to build.

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia, Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

5.6.51, 5.6.45

Affected platforms

WebAssembly

IDE

Visual Studio 2022

IDE version

VS 17.13.2, 17.13.5
Uno Platform VS Extension 5.6.42.66
Latest uno-check all good

Relevant plugins

No response

Anything else we need to know?

No response

@mikernet mikernet added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Mar 28, 2025
@mikernet mikernet changed the title [WASM] Crazy long debug build times [WASM regression] Crazy long debug build times Mar 28, 2025
@jeromelaban
Copy link
Member

Thanks for the report. This project builds in between 30s (first run) and 3s (subsequent run).

Could you provide a binlog?

@jeromelaban jeromelaban added the triage/needs-information Indicates an issue needs more information in order to work on it. label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/needs-information Indicates an issue needs more information in order to work on it. triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants