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

Other than buffering, why are libc calls faster than system calls?


libc calls are not faster than system calls.



This 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).


Ah! That makes sense now. I thought it would be impossible for LibC to be faster than a syscall short of it cannibalizing the kernel.




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

Search: