[ruby-cvs:57474] normal:r50326 (trunk): lib/net/*: use io/wait methods instead of IO.select

normal at ruby-lang.org normal at ruby-lang.org
Thu Apr 16 05:11:25 JST 2015


normal	2015-04-16 05:11:23 +0900 (Thu, 16 Apr 2015)

  New Revision: 50326

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50326

  Log:
    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

  Modified files:
    trunk/ChangeLog
    trunk/lib/net/http/generic_request.rb
    trunk/lib/net/protocol.rb


More information about the ruby-cvs mailing list