From: Roger Pack Date: 2010-01-26T04:43:45+09:00 Subject: [ruby-core:27830] Re: [Bug #2637] unable to select for < 0.1s in windows Thanks--it works now! I have noticed that it is still a bit slow, though...it now takes 0.015s per select (with 1.8.6 it takes 0.0000015s per select) Any ideas there? gprof didn't seem helpful narrow down the cause (here it selects 20 times) % cumulative self self total time seconds seconds calls ms/call ms/call name 12.50 0.01 0.01 58976 0.00 0.00 rb_econv_convert0 12.50 0.02 0.01 58911 0.00 0.00 fill_cbuf 12.50 0.03 0.01 24697 0.00 0.00 vm_xmalloc 12.50 0.04 0.01 18952 0.00 0.00 rb_enc_from_index 12.50 0.05 0.01 16886 0.00 0.00 compile_data_alloc 12.50 0.06 0.01 6159 0.00 0.00 node_newnode 12.50 0.07 0.01 4556 0.00 0.00 st_add_direct 12.50 0.08 0.01 21 0.48 0.48 rb_w32_select@20 0.00 0.08 0.00 100662 0.00 0.00 filetime_to_timeval 0.00 0.08 0.00 100626 0.00 0.00 gettimeofday 0.00 0.08 0.00 100541 0.00 0.00 do_select 0.00 0.08 0.00 100541 0.00 0.00 subtract 0.00 0.08 0.00 100520 0.00 0.00 compare