From: Sebastian Newstream Date: 2008-11-10T23:09:32+09:00 Subject: Re: Moving large amount of files, 1.750.000+ Jano Svitok wrote: > On Mon, Nov 10, 2008 at 09:28, Saji N. Hameed wrote: >> This may be a naive suggestion. It may be worthwhile to see if there >> is a benefit in parallelize the process using Threads (split the transfer >> jobs among multiple threads ??? ... ) > > I guess Ara Howard's threadify > (http://codeforpeople.com/lib/ruby/threadify/) might be handy. > > The usefulness of more threads depends on network saturation - measure > your network/disk throughput > using plain system copy (maybe several parallel ones), then measure > what your script does. > I'm afraid if you're going over ethernet, one thread would be enough. Thats what I though to. Thanks for confirming this. > > I'd also suggest using File.directory? for testing if the file is > directory, instead of searching for '.' I will definitly do this. Thanks for your input Jano. Best regards //Sebastian > > Jano -- Posted via http://www.ruby-forum.com/.