title: How to efficiently process 300+ Files concurrently in scala
body: <p>I'm going to work on comparing around 300 binary files using Scala, bytes-by-bytes, 4MB each. However, judging from what I've already done, processing 15 files at the same time using <strong>java.BufferedInputStream</strong> tooks me around 90 sec on my machine so I don't think my solution would scale well in terms of large number of files.</p>
  
  <p>Ideas and suggestions are highly appreciated.</p>
  
  <p><strong>EDIT:</strong> The actual task is not just comparing the difference but to processing those files in the same sequence order. Let's say I have to look at byte <strong>ith</strong> in <strong>every file</strong> at the same time, and moving on to (ith + 1).</p>