Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   Speed up require on win32 (http://www.velocityreviews.com/forums/t854734-speed-up-require-on-win32.html)

Alex 2k8 12-14-2008 03:11 PM

Speed up require on win32
 
Hello,

I am trying to speedup the ruby1.8.6 'require' function for Windows.
I've noticed that for file that successfully found FileMon reports too
many such errors:

DeviceIoControl, FAST IO DISALLOWED, Control: 0x12043
DeviceIoControl, INVALID PARAMETER, Control: 0x12043

One of the sources of these messages is:
win32.c > rb_w32_fclose > is_socket > getsockopt

I decided to reproduce this error. So, I wrote a test application linked
with msvcr80-ruby18-static.lib:

- - - - -
FILE * fp = fopen(fname, "r");
fclose(fp); // This results in rb_w32_fclose call.
- - - - -

But I do NOT get DeviceIoControl errors from my_test!

So in short
1. I get DeviceIoControl errors from rb_w32_fclose called by ruby.exe
2. I do NOT get DeviceIoControl from rb_w32_fclose called by my_test.exe
3. Errors come from the 'getsockopt' function.

Can any one explain this, please? How can we avoid errors comming from
ruby.exe?

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


Alex 2k8 12-14-2008 03:47 PM

Re: Speed up require on win32
 
Aha.. I forgot to call WSAStartup. No my_test.exe reports
DeviceIoControl errors too.

Btw, is not there any better alternative for 'win32.c > is_socket'
function?

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


Robert Klemme 12-14-2008 06:26 PM

Re: Speed up require on win32
 
On 14.12.2008 16:47, Alex 2k8 wrote:
> Aha.. I forgot to call WSAStartup. No my_test.exe reports
> DeviceIoControl errors too.
>
> Btw, is not there any better alternative for 'win32.c > is_socket'
> function?


I did this with cygwin's version of Ruby

$ ruby -r a -e '1'

There was an empty file a.rb in the current directory.

I used Process Monitor 2.03 which is the successor of File Mon. I
exported the trace filtered for the file name in field "Path" and
"Process Name" for "ruby.exe". Please find the result attached. I did
not find any DeviceIoControl which might be because of the other ruby
version.

HTH

Cheers

robert


"Time of Day","Process Name","PID","Operation","Path","Result","Detail"
"19:15:36,0584721","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\a.rb"," NAME NOT FOUND",""
"19:15:36,0688748","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:15:36,0749493","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\a.rb","NAME NOT FOUND",""
"19:15:36,0810185","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\a.rb" ,"NAME NOT FOUND",""
"19:15:36,0863681","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:15:36,0917964","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\a.rb","NA ME NOT FOUND",""
"19:15:36,0978880","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\a.rb","NAME NOT FOUND",""
"19:15:36,1036440","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:15:36,1236401","ruby.exe","5668","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:15:36,1239103","ruby.exe","5668","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Read Attributes, Read Control, Disposition: Open, Options: Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:15:36,1240804","ruby.exe","5668","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:15:36,1267539","ruby.exe","5668","QueryInforma tionVolume","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","VolumeCreati onTime: 04.01.2006 16:37:56, VolumeSerialNumber: 6CDA-28EF, SupportsObjects: True, VolumeLabel: "
"19:15:36,1269159","ruby.exe","5668","QueryAllInfo rmationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, FileAttributes: A, AllocationSize: 0, EndOfFile: 0, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0xd21000000000cd7, EaSize: 0, Access: Read Attributes, Read Control, Position: 0, Mode: , AlignmentRequirement: Word"
"19:15:36,1270771","ruby.exe","5668","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","BUFFER OVERFLOW","Information: Owner, Group, DACL"
"19:15:36,1284804","ruby.exe","5668","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Information: Owner, Group, DACL"
"19:15:36,1286528","ruby.exe","5668","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:15:36,1289824","ruby.exe","5668","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:15:36,1292595","ruby.exe","5668","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:15:36,1294241","ruby.exe","5668","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:15:36,1301080","ruby.exe","5668","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:15:36,1305927","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\a.rb"," NAME NOT FOUND",""
"19:15:36,1330044","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:15:36,1354332","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\a.rb","NAME NOT FOUND",""
"19:15:36,1408831","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\a.rb" ,"NAME NOT FOUND",""
"19:15:36,1426291","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:15:36,1445975","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\a.rb","NA ME NOT FOUND",""
"19:15:36,1467246","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\a.rb","NAME NOT FOUND",""
"19:15:36,1485916","ruby.exe","5668","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:15:36,1513895","ruby.exe","5668","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:15:36,1516613","ruby.exe","5668","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Read Attributes, Read Control, Disposition: Open, Options: Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:15:36,1518306","ruby.exe","5668","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:15:36,1521873","ruby.exe","5668","QueryInforma tionVolume","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","VolumeCreati onTime: 04.01.2006 16:37:56, VolumeSerialNumber: 6CDA-28EF, SupportsObjects: True, VolumeLabel: "
"19:15:36,1523412","ruby.exe","5668","QueryAllInfo rmationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, FileAttributes: A, AllocationSize: 0, EndOfFile: 0, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0xd21000000000cd7, EaSize: 0, Access: Read Attributes, Read Control, Position: 0, Mode: , AlignmentRequirement: Word"
"19:15:36,1525027","ruby.exe","5668","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","BUFFER OVERFLOW","Information: Owner, Group, DACL"
"19:15:36,1526874","ruby.exe","5668","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Information: Owner, Group, DACL"
"19:15:36,1528489","ruby.exe","5668","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:15:36,1531550","ruby.exe","5668","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:15:36,1534101","ruby.exe","5668","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:15:36,1539021","ruby.exe","5668","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:15:36,1541529","ruby.exe","5668","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:15:36,1545211","ruby.exe","5668","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:15:36,1547728","ruby.exe","5668","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:15:36,1549335","ruby.exe","5668","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:15:36,1551595","ruby.exe","5668","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:15:36,1555020","ruby.exe","5668","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:15:36,1557503","ruby.exe","5668","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:15:36,1559107","ruby.exe","5668","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:15:36,1561328","ruby.exe","5668","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:15:36,1564228","ruby.exe","5668","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:15:36,1566661","ruby.exe","5668","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:15:36,1568262","ruby.exe","5668","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:15:36,1570617","ruby.exe","5668","QueryInforma tionVolume","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","VolumeCreati onTime: 04.01.2006 16:37:56, VolumeSerialNumber: 6CDA-28EF, SupportsObjects: True, VolumeLabel: "
"19:15:36,1573740","ruby.exe","5668","QueryAllInfo rmationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, FileAttributes: A, AllocationSize: 0, EndOfFile: 0, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0xd21000000000cd7, EaSize: 0, Access: Generic Read, Position: 0, Mode: Synchronous IO Non-Alert, AlignmentRequirement: Word"
"19:15:36,1575285","ruby.exe","5668","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","BUFFER OVERFLOW","Information: Owner, Group, DACL"
"19:15:36,1576701","ruby.exe","5668","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Information: Owner, Group, DACL"
"19:15:36,1579869","ruby.exe","5668","ReadFile","C :\Dokumente und Einstellungen\robert\a.rb","END OF FILE","Offset: 0, Length: 65.536"
"19:15:36,1581621","ruby.exe","5668","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:19:12,7284064","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\a.rb"," NAME NOT FOUND",""
"19:19:12,7353410","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:19:12,7421793","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\a.rb","NAME NOT FOUND",""
"19:19:12,7467819","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\a.rb" ,"NAME NOT FOUND",""
"19:19:12,7521166","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:19:12,7576349","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\a.rb","NA ME NOT FOUND",""
"19:19:12,7629619","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\a.rb","NAME NOT FOUND",""
"19:19:12,7683838","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:19:12,7738705","ruby.exe","6020","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:19:12,7743033","ruby.exe","6020","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Read Attributes, Read Control, Disposition: Open, Options: Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:19:12,7744902","ruby.exe","6020","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:19:12,7747346","ruby.exe","6020","QueryInforma tionVolume","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","VolumeCreati onTime: 04.01.2006 16:37:56, VolumeSerialNumber: 6CDA-28EF, SupportsObjects: True, VolumeLabel: "
"19:19:12,7748905","ruby.exe","6020","QueryAllInfo rmationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, FileAttributes: A, AllocationSize: 0, EndOfFile: 0, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0xd21000000000cd7, EaSize: 0, Access: Read Attributes, Read Control, Position: 0, Mode: , AlignmentRequirement: Word"
"19:19:12,7750673","ruby.exe","6020","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","BUFFER OVERFLOW","Information: Owner, Group, DACL"
"19:19:12,7752238","ruby.exe","6020","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Information: Owner, Group, DACL"
"19:19:12,7753939","ruby.exe","6020","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:19:12,7758127","ruby.exe","6020","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:19:12,7760761","ruby.exe","6020","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:19:12,7762376","ruby.exe","6020","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:19:12,7764658","ruby.exe","6020","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:19:12,7769176","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\a.rb"," NAME NOT FOUND",""
"19:19:12,7786876","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:19:12,7803889","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\a.rb","NAME NOT FOUND",""
"19:19:12,7819886","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\a.rb" ,"NAME NOT FOUND",""
"19:19:12,7848758","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:19:12,7865791","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\a.rb","NA ME NOT FOUND",""
"19:19:12,7883587","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\a.rb","NAME NOT FOUND",""
"19:19:12,7905411","ruby.exe","6020","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:19:12,7921276","ruby.exe","6020","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:19:12,7924173","ruby.exe","6020","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Read Attributes, Read Control, Disposition: Open, Options: Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:19:12,7925863","ruby.exe","6020","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:19:12,7928282","ruby.exe","6020","QueryInforma tionVolume","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","VolumeCreati onTime: 04.01.2006 16:37:56, VolumeSerialNumber: 6CDA-28EF, SupportsObjects: True, VolumeLabel: "
"19:19:12,7930987","ruby.exe","6020","QueryAllInfo rmationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, FileAttributes: A, AllocationSize: 0, EndOfFile: 0, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0xd21000000000cd7, EaSize: 0, Access: Read Attributes, Read Control, Position: 0, Mode: , AlignmentRequirement: Word"
"19:19:12,7932540","ruby.exe","6020","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","BUFFER OVERFLOW","Information: Owner, Group, DACL"
"19:19:12,7934009","ruby.exe","6020","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Information: Owner, Group, DACL"
"19:19:12,7935618","ruby.exe","6020","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:19:12,7938840","ruby.exe","6020","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:19:12,7941376","ruby.exe","6020","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:19:12,7942988","ruby.exe","6020","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:19:12,7945251","ruby.exe","6020","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:19:12,7948433","ruby.exe","6020","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:19:12,7950972","ruby.exe","6020","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:19:12,7952570","ruby.exe","6020","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:19:12,7954867","ruby.exe","6020","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:19:12,7967997","ruby.exe","6020","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:19:12,7970737","ruby.exe","6020","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:19:12,7972394","ruby.exe","6020","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:19:12,7974704","ruby.exe","6020","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:19:12,7978018","ruby.exe","6020","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:19:12,7980560","ruby.exe","6020","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:19:12,7982175","ruby.exe","6020","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:19:12,7985812","ruby.exe","6020","QueryInforma tionVolume","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","VolumeCreati onTime: 04.01.2006 16:37:56, VolumeSerialNumber: 6CDA-28EF, SupportsObjects: True, VolumeLabel: "
"19:19:12,7987332","ruby.exe","6020","QueryAllInfo rmationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, FileAttributes: A, AllocationSize: 0, EndOfFile: 0, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0xd21000000000cd7, EaSize: 0, Access: Generic Read, Position: 0, Mode: Synchronous IO Non-Alert, AlignmentRequirement: Word"
"19:19:12,7988832","ruby.exe","6020","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","BUFFER OVERFLOW","Information: Owner, Group, DACL"
"19:19:12,7990679","ruby.exe","6020","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Information: Owner, Group, DACL"
"19:19:12,7993623","ruby.exe","6020","ReadFile","C :\Dokumente und Einstellungen\robert\a.rb","END OF FILE","Offset: 0, Length: 65.536"
"19:19:12,7995391","ruby.exe","6020","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:20:13,5028221","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\a.rb"," NAME NOT FOUND",""
"19:20:13,5123264","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:20:13,5178156","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\a.rb","NAME NOT FOUND",""
"19:20:13,5224629","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\a.rb" ,"NAME NOT FOUND",""
"19:20:13,5279127","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:20:13,5335146","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\a.rb","NA ME NOT FOUND",""
"19:20:13,5382043","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\a.rb","NAME NOT FOUND",""
"19:20:13,5451252","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:20:13,5506399","ruby.exe","5104","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:20:13,5510229","ruby.exe","5104","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Read Attributes, Read Control, Disposition: Open, Options: Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:20:13,5511933","ruby.exe","5104","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:20:13,5514400","ruby.exe","5104","QueryInforma tionVolume","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","VolumeCreati onTime: 04.01.2006 16:37:56, VolumeSerialNumber: 6CDA-28EF, SupportsObjects: True, VolumeLabel: "
"19:20:13,5519669","ruby.exe","5104","QueryAllInfo rmationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, FileAttributes: A, AllocationSize: 0, EndOfFile: 0, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0xd21000000000cd7, EaSize: 0, Access: Read Attributes, Read Control, Position: 0, Mode: , AlignmentRequirement: Word"
"19:20:13,5521513","ruby.exe","5104","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","BUFFER OVERFLOW","Information: Owner, Group, DACL"
"19:20:13,5523105","ruby.exe","5104","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Information: Owner, Group, DACL"
"19:20:13,5524860","ruby.exe","5104","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:20:13,5528718","ruby.exe","5104","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:20:13,5531383","ruby.exe","5104","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:20:13,5533009","ruby.exe","5104","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:20:13,5535920","ruby.exe","5104","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:20:13,5540554","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\a.rb"," NAME NOT FOUND",""
"19:20:13,5558023","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:20:13,5574721","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\site_ruby\a.rb","NAME NOT FOUND",""
"19:20:13,5590390","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\a.rb" ,"NAME NOT FOUND",""
"19:20:13,5607610","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:20:13,5627364","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\vendor_ruby\a.rb","NA ME NOT FOUND",""
"19:20:13,5643612","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\a.rb","NAME NOT FOUND",""
"19:20:13,5661033","ruby.exe","5104","QueryOpen"," C:\Programme\cygwin\lib\ruby\1.8\i386-cygwin\a.rb","NAME NOT FOUND",""
"19:20:13,5676982","ruby.exe","5104","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:20:13,5679606","ruby.exe","5104","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Read Attributes, Read Control, Disposition: Open, Options: Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:20:13,5681569","ruby.exe","5104","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:20:13,5684064","ruby.exe","5104","QueryInforma tionVolume","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","VolumeCreati onTime: 04.01.2006 16:37:56, VolumeSerialNumber: 6CDA-28EF, SupportsObjects: True, VolumeLabel: "
"19:20:13,5685567","ruby.exe","5104","QueryAllInfo rmationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, FileAttributes: A, AllocationSize: 0, EndOfFile: 0, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0xd21000000000cd7, EaSize: 0, Access: Read Attributes, Read Control, Position: 0, Mode: , AlignmentRequirement: Word"
"19:20:13,5689389","ruby.exe","5104","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","BUFFER OVERFLOW","Information: Owner, Group, DACL"
"19:20:13,5690911","ruby.exe","5104","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Information: Owner, Group, DACL"
"19:20:13,5693158","ruby.exe","5104","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:20:13,5696348","ruby.exe","5104","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:20:13,5698966","ruby.exe","5104","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:20:13,5700600","ruby.exe","5104","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:20:13,5702980","ruby.exe","5104","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:20:13,5706360","ruby.exe","5104","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:20:13,5708841","ruby.exe","5104","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:20:13,5710436","ruby.exe","5104","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:20:13,5712705","ruby.exe","5104","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:20:13,5715641","ruby.exe","5104","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:20:13,5718133","ruby.exe","5104","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:20:13,5719725","ruby.exe","5104","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:20:13,5721943","ruby.exe","5104","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""
"19:20:13,5724899","ruby.exe","5104","QueryOpen"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, AllocationSize: 0, EndOfFile: 0, FileAttributes: A"
"19:20:13,5727369","ruby.exe","5104","CreateFile", "C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Open For Backup, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, Impersonating: FUSSEL\robert, OpenResult: Opened"
"19:20:13,5728978","ruby.exe","5104","QueryNameInf ormationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Name: \Dokumente und Einstellungen\robert\a.rb"
"19:20:13,5731696","ruby.exe","5104","QueryInforma tionVolume","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","VolumeCreati onTime: 04.01.2006 16:37:56, VolumeSerialNumber: 6CDA-28EF, SupportsObjects: True, VolumeLabel: "
"19:20:13,5733297","ruby.exe","5104","QueryAllInfo rmationFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","CreationTime : 14.12.2008 19:15:30, LastAccessTime: 14.12.2008 19:15:30, LastWriteTime: 14.12.2008 19:15:30, ChangeTime: 14.12.2008 19:15:30, FileAttributes: A, AllocationSize: 0, EndOfFile: 0, NumberOfLinks: 1, DeletePending: False, Directory: False, IndexNumber: 0xd21000000000cd7, EaSize: 0, Access: Generic Read, Position: 0, Mode: Synchronous IO Non-Alert, AlignmentRequirement: Word"
"19:20:13,5734783","ruby.exe","5104","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","BUFFER OVERFLOW","Information: Owner, Group, DACL"
"19:20:13,5736213","ruby.exe","5104","QuerySecurit yFile","C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS","Information: Owner, Group, DACL"
"19:20:13,5740493","ruby.exe","5104","ReadFile","C :\Dokumente und Einstellungen\robert\a.rb","END OF FILE","Offset: 0, Length: 65.536"
"19:20:13,5742493","ruby.exe","5104","CloseFile"," C:\Dokumente und Einstellungen\robert\a.rb","SUCCESS",""


Robert Klemme 12-14-2008 07:32 PM

Re: Speed up require on win32
 
My reply is over there in Usenet, apparently the attachment was too large:

http://groups.google.com/group/comp....85de91d3c3ba77

Cheers

robert

--
remember.guy do |as, often| as.you_can - without end


getcha.2k8@gmail.com 12-15-2008 01:20 AM

Re: Speed up require on win32
 
Hello, Robert

Your logs looks good.

I tested again in such environment:
OS: Vista
Process Monitor: 2.03
Ruby: 1.8.6, 1.8.7, 1.9.0

Used the same a.rb and command line as you. I got similar results for
all ruby versions: every successfull read of a.rb is followed by ~60
DeviceIoControl.

I can't attach my CVS (posting from google site). How did you attach
it?

- Alex

Robert Klemme 12-15-2008 06:17 AM

Re: Speed up require on win32
 
On 15.12.2008 02:20, getcha.2k8@gmail.com wrote:
> Hello, Robert
>
> Your logs looks good.


And I also do not notice any slowdowns of require.

> I tested again in such environment:
> OS: Vista
> Process Monitor: 2.03
> Ruby: 1.8.6, 1.8.7, 1.9.0


My version was

ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]

> Used the same a.rb and command line as you. I got similar results for
> all ruby versions: every successfull read of a.rb is followed by ~60
> DeviceIoControl.


Maybe it's in your environment? Do you somehow require "rubygems"?

> I can't attach my CVS (posting from google site). How did you attach
> it?


I sent it via Newsreader to the newsgroup comp.lang.ruby.

Kind regards

robert

Alex 2k8 12-17-2008 03:26 AM

Re: Speed up require on win32
 
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/.


Robert Klemme 12-17-2008 08:41 AM

Re: Speed up require on win32
 
2008/12/17 Alex 2k8 <abc3def@gmail.com>:
>> ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]

> Probably cygwin is not calling the same OS functions.


Yes, that's a likely explanation.

> 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...


I don't think it's worth the hassle. Just my 0.02EUR...

Kind regards

robert


--
remember.guy do |as, often| as.you_can - without end


Lars Christensen 12-17-2008 09:00 AM

Re: Speed up require on win32
 
On Dec 17, 4:26*am, Alex 2k8 <abc3...@gmail.com> wrote:
> 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.


I see the same issue here, with MSVC builds. However, with MingW
builds, i don't get the problem. The is_socket function you mention
has been changed significantly in 1.9.1 anyway.

Roger Pack 12-18-2008 05:26 AM

Re: Speed up require on win32
 

> 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


Submit a patch to core :)
-=R
--
Posted via http://www.ruby-forum.com/.



All times are GMT. The time now is 04:33 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.