nus-cs3281 / 2024

1 stars 2 forks source link

Lightning Talk: Web Workers #41

Open NicolasCwy opened 7 months ago

NicolasCwy commented 7 months ago

The javascript event loop is efficient for most of our needs, doing work on a single thread. Though not common are times though where these leads to bottlenecks. In other programming languages, we are familiar with processes and threads, but it might seem strange to have this in JS, well-known for being "single threaded". I would be introducing the Web Worker API, implemented in most browsers as a way to create new processes to speed up computation.

CtA: Give web workers a shot!

Presentation slides.pdf