Re: excessive use of gettimeofday(2) and other syscalls

看板FB_hackers作者時間14年前 (2011/09/07 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/16 (看更多)
I believe that Linux uses a less precise clock that scales better across cores and is much faster than the precise clock FreeBSD uses even on one core. I don't know POSIX and other standards well enough to know if this is an acceptable solution on FreeBSD. However, there are less precise clocks on FreeBSD that are considerably faster (i.e., the _FAST variants). Someone with more expertise in these matters needs to comment on whether a change to using a _FAST clock is appropriate in libc. If it is acceptable, I think that it is easier to just make time use the FAST clock instead of getting programmers to change their programs. On Tue, Sep 6, 2011 at 6:41 PM, Eitan Adler <lists@eitanadler.com> wrote: > On Tue, Sep 6, 2011 at 6:44 PM, Manish Vachharajani > <manishv@lineratesystems.com> wrote: >> Lots of libraries assume that time is fast because it >> is fast under Linux. > > Silly question, but why can't we make it fast too? > > -- > Eitan Adler > Manish _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
文章代碼(AID): #1EPi9Fj- (FB_hackers)
討論串 (同標題文章)
完整討論串 (本文為第 4 之 16 篇):
文章代碼(AID): #1EPi9Fj- (FB_hackers)