java.io.File.toURI() IO bound?
<p>I'm profiling J2EE application responsible for storing binary files on disk.  During profiling, we've discovered a great deal of IO bottlenecks, which we have a plane to address.  However, we've also seen slowdown on this line of code:</p>

<pre><code>// Example URI path
String filename = "/path/to/file.txt"  

// This line at load takes almost 500 ms
return new File(filename).toURI();
</code></pre>

<p>The method in question takes in a file path and returns a file path where the file can be written.</p>

<p>Since the slowdown only occurs at load, I am guessing the process is IO bound during this line.  Is this the case?  If so, is there a better way to assign a URI that will perform better? </p>
