Actions
Bug #2637
closedunable to select for < 0.1s in windows
Description
=begin
in 1.9:
a = TCPSocket.new 'google.com', 80
Benchmark.realtime { IO.select([a], nil, nil, 0) }
=> 0.109375
in 1.8
a = TCPSocket.new 'google.com', 80
Benchmark.realtime { IO.select([a], nil, nil, 0) }
=> 0.0
This slow downs drb a lot, so is somewhat of a blocker.
Thanks.
-r
=end
Updated by luislavena (Luis Lavena) over 14 years ago
=begin
Around other versions:
C:\Users\Luis>pik ruby -rsocket -rbenchmark -e "a = TCPSocket.new('google.com', 80); puts Benchmark.realtime { IO.select([a], nil, nil, 0) }"
IronRuby 0.9.3.0 on .NET 2.0.0.0
0.0220012664794922
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) Client VM 1.6.0_17) [x86-java]
0.00999999046325684
ruby 1.8.6 (2009-06-08 patchlevel 369) [i386-mswin32]
0.029000997543335
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
0.0
ruby 1.8.7 (2009-12-24 patchlevel 248) [i386-mingw32]
0.0
ruby 1.8.7 (2009-12-24 patchlevel 248) [i386-mswin32]
0.0220010280609131
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mingw32]
0.100004911422729
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mswin32]
0.100005865097046
ruby 1.9.2dev (2010-01-02 trunk 26229) [i386-mingw32]
0.1000058650970459
=end
Updated by usa (Usaku NAKAMURA) over 14 years ago
- Status changed from Open to Assigned
- Assignee set to usa (Usaku NAKAMURA)
=begin
=end
Updated by wanabe (_ wanabe) over 14 years ago
=begin
do_select(), in thread.c, waits at least 100 ms on Windows.
(see the line over beginning of BLOCKING_REGION.)
But why?
=end
Updated by usa (Usaku NAKAMURA) over 14 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r26409.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Actions
Like0
Like0Like0Like0Like0