|
|
|
|
|
by brundolf
1465 days ago
|
|
And the performance argument isn't even just about CPU time, right? The fact that JS is heavily event-friendly, and all of its IO APIs are non-blocking by default, gives it an automatic advantage over busy-waiting languages like Python, and also languages where concurrency means writing threads manually. If your web server spends most of its time on IO (network, DB, file system), as many do, JS acts as a lightweight task-delegator to a highly parallel and performant native runtime. I haven't worked on a large-scale JS back-end myself, but this is the case I've heard others make |
|
Blocking is NOT the same as busy wait.