From: Robert Klemme Date: 2008-03-05T03:04:55+09:00 Subject: Re: Better performance than native unix commands? On 04.03.2008 02:10, Ma Sa wrote: > I have an issue with nfs and listing a large amount of files that I am > wondering if I can solve with ruby. I know that ruby has better > performance in some instances than a bash shell script so I am wondering > if anyone has experience or some examples of how this might work... > > I have a directory with a large amount of files that is mounted over > nfs. The network is gigabit and so are the nic's. The servers are very > high end so the hardware / network performance is not the bottleneck. > However, sometimes it can take a very long time to list out the files > contained within a directory. > > I will do an ls and it might take 5 minutes to retrieve a response. > > Would this be faster if I were to do the same ls function using the ruby > api? Did you try it out? What happened? My guess is that it's as slow because likely the timing is dominated by IO. Kind regards robert