2

In another question I asked (why is Rake test so slow), part of the response was that:

The reason is that file stat's in windows are dreadfully slow, and, since Ruby is written on Linux (and optimized for Linux), there hasn't been much work to make it faster.

Can someone explain this further?

2 Answers 2

3

"File stats" mean calls to the operating system to get the status (e.g. permissions) for a file. Here's a really interesting post about it; the summary:

Today we have three different stat/chmod-models:

a) UNIX-model           (used in Ruby on Unix)
b) Ruby-Windows-model   (used in Ruby on Windows)
c) Windows-model        (used in Windows-applications using
                         stat/chmod calls)

I propose that b) should be replaced with c).

1
  • Mind boggling that this was submitted in 2003 and still no work. Sigh.
    – aronchick
    Apr 2, 2010 at 16:46
1

http://en.wikibooks.org/wiki/Ruby_Programming/Installing_Ruby#Windows_is_slow

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.