Re: gettimeofday() a special case : why?

Olaf Titz (olaf@bigred.inka.de)
Mon, 13 Dec 1999 11:30:00 +0100


> I don't want to be too OT or bothersome, but can someone explain why
> gettimeofday() is the one syscall that optimization at the ~100 cycle level
> makes sense for? If it's a long explanation, a link or pointer to a book is

Because it's used _very_ often. (Do strace on any X client to verify.)
Because speeding it up improves accuracy (for applications that care).
Because it's rather simple, so a speed up in the syscall interface has
more effect on this syscall than on a complex one like read().

Olaf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/