in reply to Re: randomly selecting files
in thread randomly selecting files

How much is a while? It takes about 7140 times as long as merging one set of files. It's very likely that your program will be I/O bound, and hence the size of the files are going to be the biggest factor in determining whether or not "it takes a while".