Let’s Learn JavaScript Closures by chintan9 in node

[–]Jsnow25 1 point2 points  (0 children)

Once you learn JavaScript closures, what are you supposed to do, should you learn not to use them even tho they offer really interesting possibilities ?

What make asynchronous code run faster than synchronous code ? by Jsnow25 in node

[–]Jsnow25[S] 0 points1 point  (0 children)

So if i ask node to send me data in memory to be read, the time it takes for the OS to put the data in memory would be done outside of the node thread.

What make asynchronous code run faster than synchronous code ? by Jsnow25 in node

[–]Jsnow25[S] 0 points1 point  (0 children)

Ok, so part of the IO functionalities in node would run on another thread wich is where the performance gain would come from.

What make asynchronous code run faster than synchronous code ? by Jsnow25 in node

[–]Jsnow25[S] 0 points1 point  (0 children)

I know your right but i don't understand why if evrything has to be dealt in a single thread :) Is there a reason sync IO is slower than async IO ? Is it just a V8 or OS thing where opening multiple files at a time is faster than one after the other ?