3 ms·
Isn't this adding a lot of overhead compared to calling a synchronous implementation of the same code ?
by fooyc 10y ago
Isn't this adding a lot of overhead compared to calling a synchronous implementation of the same code ?
- Manishearth 10y agoYou'd have to block on I/O somehow. You can avoid the threadpool costs to block, too, IIRC (but that's worse)
- fooyc 10y agoThat's the point. Calling a blocking system call is cheaper that artificially blocking on a non-blocking operation.