Skip to content

Commit

Permalink
perf
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara committed Oct 18, 2023
1 parent e849302 commit 346cd7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions accepted/2023/wasm-browser-threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,12 @@ Move all managed user code out of UI/DOM thread, so that it becomes consistent w
- what's overall perf impact for Blazor's `renderBatch` ?

## Performance
- as compared to ST build for dotnet wasm
- the dispatch between threads (caused by JS object thread affinity) will have negative performance impact on the JS interop
- in case of HTTP/WS clients used via Streams, it could be surprizing
- browser performance is lower when working with SharedArrayBuffer
- Mono performance is lower because there are GC safe-points and locks in the VM code
- startup is slower because creation of WebWorker instances is slow

## Spin-waiting in JS
- if we want to keep synchronous JS APIs to work on UI thread, we have to spin-wait
Expand Down

0 comments on commit 346cd7d

Please sign in to comment.