Skip to content

[Blazor] UI freeze with WebAssembly/SignalR #24994

@RomainAn

Description

@RomainAn

Hi everyone,

First i would like to thanks you all for the amazing job you did, and how much you made Blazor grow and make it super interesting.

Still, i have some concerned about the issue using WebAssembly 3.2.0, .NET Core hosted (3.1.302).
I'm currently doing a real-time application that is doing cryptocurrency orderbook viewer (Retrieving data from websockets with SignalR).
Somehow, the UI is freezing or extremely slow even there is maximum 5-10 refresh per seconds.
I keep having GC_Minor happening and there is freezes when i get GC_MAJOR_SWEEP.

I tried to avoid doing allocations as much as i can.
On every incoming messages i am calling StateHasChanged()
Also, i tried to profile using Chrome and 99% is wasted on mono_jit_runtime_invoke.

Should be consider to not use Blazor WebAssembly for high-frequency tasks ?

Have a great day,

Ro

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions