in reply to Simultaneously process the multiple files at the same time

As you have been told repeatedly already, first find out where your script is slow. In many cases, reading the data from disk is the slowest part. The best way to make reading from disk faster is to buy faster storage.

Using threads will usually not make reading from storage faster, as it increases the administrative overhead while still leaving the bottleneck unchanged.

  • Comment on Re: Simultaneously process the multiple files at the same time