Hi, Robert

> ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
Probably cygwin is not calling the same OS functions.

> Maybe it's in your environment?  Do you somehow require "rubygems"?
I tested on Windows Server 2003. And I tryed with/without rubygems - 
same results.

Btw, I compiled ruby from sources, and changed rb_w32_fclose.

  //if (!is_socket(sock)) {
  if(1) {
    ...
    return fclose(fp);
  }

The DeviceIoControl lines are gone. Then I checked the speed. I 
installed rails 2.2.2, then did:
 1. irb -rubygems
 2. s = Time.now; require 'activesupport'; e = Time.now; e.to_f - s.to_f

For normal ruby results was:
 ~ 1.16 sec

For patched ruby:
 ~ 1.00 sec

Not a big advantage, but any way. Going to see if in more complex 
situations this can be more valuable...

- Alex
-- 
Posted via http://www.ruby-forum.com/.