What is the fastest way to read an entire file into a String in Scala?
<p>I am currently using the following to do this.</p>

<pre><code>val string = scala.io.Source.fromFile(filePath).mkString
</code></pre>

<p>However, I've noticed that it is quite slow. Is there any better (in terms of speed) method to read the whole file into a string?</p>