Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not even remotely... To setup for a call to a C function is a matter of a handfull of instructions. To setup a context switch is hundreds.


If you're talking about kernel context switches, the JS has them too, and then has more instructions to set up the JS call stack to boot. Setting up a million JS call stacks is not necessarily trivial. A million here, a million there, soon you're talking real wall-clock time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: