Project

General

Profile

Actions

Feature #11056

closed

[PATCH] lib/net/*: use io/wait methods instead of IO.select

Added by normalperson (Eric Wong) over 10 years ago. Updated about 10 years ago.

Status:
Closed
Target version:
-
[ruby-core:<unknown>]

Description

lib/net/*: use io/wait methods instead of IO.select

io/wait is expected to work on any platform where sockets are
supported. io/wait methods uses fewer allocations and uses
ppoll internally under Linux for better performance on
high-numbered FDs.

[ruby-core:35572] describes the performance advantage of ppoll
on high-numbered FDs.

  • lib/net/protocol.rb (rbuf_fill): use IO#wait_*able
  • lib/net/http/generic_request.rb (wait_for_continue): ditto

I'll commit in a few days unless there are objections.


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0