I have a piece of code that reads hell of a lot (hundreds of thousand) of relatively small files (couple of KB) from the local file system in a loop. For each file there is a java.io.FileInputStream
created to read the content. The process its very slow and take ages.
Do you think that wrapping the FIS into java.io.BufferedInputStream
would make a significant difference?