Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: joyent/libuv
base: 8a4aa226772e
Choose a base ref
...
head repository: joyent/libuv
compare: 21c37a7db83e
Choose a head ref
  • 1 commit
  • 11 files changed
  • 1 contributor

Commits on Oct 29, 2013

  1. linux: use CLOCK_MONOTONIC_COARSE if available

    On some systems, clock_gettime(CLOCK_MONOTONIC) is only serviced from
    the vDSO when the __vdso_clock_gettime() wrapper is confident enough
    that the vDSO timestamp is highly accurate.  When in doubt, it falls
    back to making a traditional SYS_clock_gettime system call with all
    the overhead that entails.
    
    While a commendable approach, it's overkill for our purposes because we
    don't usually need high precision time. That's why this commit switches
    to CLOCK_MONOTONIC_COARSE for low-precision timekeeping, provided said
    clock has at least a one millisecond resolution.
    
    This change should eliminate the system call on almost all systems,
    including virtualized ones, provided the kernel is >= 2.6.32 and glibc
    is new enough to find and parse the vDSO.
    bnoordhuis committed Oct 29, 2013
    Copy the full SHA
    21c37a7 View commit details
    Browse the repository at this point in the history