Two-layer multithreaded loops in the web consume more resources than single-layer loops
WebAssembly’s std::thread underlying Web Workers relies on the browser, which has a strict limit on the number of Workers that can be active at the same time (usually the number of physical CPU cores, such as 4-8). Why does a two-tier loop (say 10×10) create threads that consume more resources Read more…