Peak Threading in the Browser
summary
Demo moves a 4s synchronous frame blur off the main UI using the web worker API wrapped by Peak Threads, replacing postMessage with promise-based send/receive and a worker file that returns results. Passing ArrayBuffer via transfer ownership stops expensive copies that bumped runtime from 21.5s to 22.5s and restores 21.5s, then parallelizing blurs across multiple threads drops total time to ~9.9s while avoiding mutexes or data races.
AI-written summary · about
