From: Sebastian Newstream Date: 2008-11-10T17:11:08+09:00 Subject: Re: Moving large amount of files, 1.750.000+ Randy Kramer wrote: > On Sunday 09 November 2008 01:35 pm, Randy Kramer wrote: >> I wouldn't be too worried about the 13 hours, you've got a lot of data >> to move. > Your probably right, I will start the job on a friday evening and let it take it's time. > PS: I wish I had added: Since all you're doing is copying files, do it > from the CLI (as Robert suggested)--no need to involve any programming > language which is just added overhead. Then let us know how many hours > it takes that way, for comparison. > > Randy Kramer Your probably right about this as well, but I can't backout of the Ruby corner now. I already opened my mouth about Ruby to much now, if I change my method now it will make Ruby look realy bad. =( This is what I succeded with: * I removed all of the console prints for each file. (This lowered the time with about 20s! I had no idea that output was so demanding.). * I kept the filehandle open for writing to the process.log. * I also removed any line of unessesary code in the critical part of my application. This lowered the time to around 17s. I will now try to run the test on the right environment. Of course I will post the results here for your guys to se. Thanks again for your time. //Sebastian -- Posted via http://www.ruby-forum.com/.