Skip to content

Size regression in Blazor WASM apps #40521

Closed
@eerhardt

Description

@eerhardt

Looking at https://aka.ms/dotnetperfstatus, there is a 140KB size regression in the default Blazor WASM app size between the following commits:

dotnet/runtime@6b83269...06228c1

SOD - New Blazor Template - Publish

image

SOD - New Blazor Template - Publish - AOT

image

We should investigate what change caused this size regression and if there is anything that can be done.

From looking at the charts, some of it comes from System.Private.CoreLib:

Before

image

After

image

But the biggest file that added here is System.Linq.Expressions.dll. It isn't in the Before, but in the After it is over 100KB itself:

After

image

Maybe a new ASP.NET change now brings in Linq.Expressions by default? cc @SteveSandersonMS @captainsafia

cc @lewing @SamMonoRT

Metadata

Metadata

Assignees

No one assigned

    Labels

    DoneThis issue has been fixedPerfarea-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions