3 ms·
Sure. Of course, one important trick here is that no matter how fast your system call is, not making a system call is just faster. io_uring is an example, as a
by tialaramex 5y ago
Sure.
Of course, one important trick here is that no matter how fast your system call is, not making a system call is just faster. io_uring is an example, as are futexes. So it's worth spending more effort on figuring out tricks to avoid doing the system call than exploiting tricks to shave a cycle or two off the time taken to execute one.
- spicybright 5y agoCompletely depends on your use case. If you're checking if sys calls work, you'd only need to run one first and see if it succeeds. Then you can be reasonably sure you have access to the rest. And different programs have different speed requirements.
- draw_down 5y agoI suppose not checking whether syscalls work would indeed be faster than checking whether they work...