Hi! On 09/29/2014 11:33 AM, Jean-Christian de Rivaz wrote: > Hi Saúl, > > > Also, on top the above, creating and processing a timer requires 3 > syscalls: timerfd_create, timerfd_gettime and read vs 0 if we keep the > min-heap. > > > Delegation of the timers to the kernel will certainly free libuv from > some code in addition to bring a far better precision. The timerfd_* > syscalls was not added without reason into the Linux kernel. > The read() is not required if you don't want the number > of expirations that have occurred. The integration of the file > descriptor into the existing epoll() syscall is enough. >
It won't free libuv of any code, it would actually make it more complex, because timerfd is linux only, so we need to keep the current code (or find some timerfd equivalent) on all other Unix platforms. Regards, -- Saúl Ibarra Corretgé bettercallsaghul.com
signature.asc
Description: OpenPGP digital signature
