-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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] Blazor apps started from Visual Studio have optimizations disabled, even in Release #40428
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
I see the issue, fix incoming. |
Tagging subscribers to this area: @CoffeeFlux |
@BrzVlad when you are running the release build are you choosing "run-without-debugging"? |
As mentioned in the description, I go to |
closed in favor of dotnet/aspnetcore#24623 |
@BrzVlad Thanks for reporting this issue.
I ran some tests with our perf benchmarking tool to verify the behavior here. Here's a screenshot of perf stats on a Blazor app built with a Debug configuration. And here's a screenshot of perf stats when running in a Release configuration. There's not a major perf distinction between the two for the scenarios measured.
This is expected since published apps run with debugging disabled. |
Steps to reproduce:
Start without debugging
, the computation time when doing a click is around 4-5 times slower than the same operation with the web app published and deployed to an IIS instanceWhen initializing the runtime,
mono_wasm_load_runtime
always receivesenable_debugging
as -1 when started from visual studio, while the published version has it set to 0.The text was updated successfully, but these errors were encountered: