lkml.org 
[lkml]   [1999]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: gettimeofday() a special case : why?
Date
From
> 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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.057 / U:0.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site