4 ms·
Other than buffering, why are libc calls faster than system calls?
by Immortalin 8y ago
Other than buffering, why are libc calls faster than system calls?
- masklinn 8y agolibc calls are not faster than system calls.
- Immortalin 8y agoExplain this comment: https://news.ycombinator.com/item?id=18057649 https://news.ycombinator.com/item?id=18057649
- masklinn 8y agoThis comment is saying that the overhead of the libc calls is (or should be) almost nothing compared to the cost of the syscall itself. The libc calls wraps the syscall, it can't be faster (vDSO aside).
- Immortalin 8y agoAh! That makes sense now. I thought it would be impossible for LibC to be faster than a syscall short of it cannibalizing the kernel.