verdie-g / dotnet-events-viewer

Analyze .NET events collected with dotnet-trace in the browser
https://verdie-g.github.io/dotnet-events-viewer/
MIT License
1 stars 0 forks source link

Build events tree in the background #1

Open verdie-g opened 2 months ago

verdie-g commented 2 months ago

To avoid blocking the UI. https://github.com/Tewr/BlazorWorker could help.

verdie-g commented 2 months ago

Building the tree only takes a second or two in the worse cases. It appears that the issue is to render the TreeView. Let's see in https://github.com/microsoft/fluentui-blazor/issues/1855 if there is some performance opportunities there.

verdie-g commented 2 months ago

In a future .NET's multi-threading will work in WASM: https://github.com/dotnet/runtime/issues/68162.

verdie-g commented 1 month ago

Since https://github.com/verdie-g/dotnet-events-viewer/commit/b8a313b602ee2e8f75e003d694761f0e5e567d94 it seems like the filtering can take several seconds to execute. So, that filtering could be done in a worker for a better experience. Though, workers have a shared-nothing design, sharing data is only done through message passing. Passing the trace to a worker would mean serializing gigabytes of data.