Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use io/wait on platforms where it's available #283

Merged
merged 1 commit into from
Dec 26, 2015
Merged

Commits on Dec 26, 2015

  1. Use io/wait on platforms where it's available

    IO.select is an expensive call, because it has to build an fd_set (large
    bitfield) from an array each time we invoke it.
    
    We're just interested in IO readiness, so on Ruby 2.0+ we can use the io/wait
    API instead, which adds wait_readable/wait_writable to IO objects.
    tarcieri committed Dec 26, 2015
    Configuration menu
    Copy the full SHA
    f4df840 View commit details
    Browse the repository at this point in the history