Skip to content

Idea on improving WebAssembly Performance #39277

@musictopia2

Description

@musictopia2

I notice a serious issue that makes webassembly too slow for all cases.
I noticed in the app razor file (componeny), the code is something like this.

<Router AppAssembly="@GetType().Assembly">

The problem is the GetType.Assembly is too slow since it uses reflection.
Reflection is always too slow for webassembly.
I think there should be a better way (even using source generators) for specifying what assembly to use with no reflection to improve speed on that part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Perfarea-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions