I was just testing JCIFS for accessing Windows shares. It is very slow to the point of being completely unusable.
import jcifs.smb.*;
class First {
publ
I found somewhere that SmbFileInputStream doesn't do its own buffering and hence the reason for being slow. Wrapping SmbFileInputStream in a BufferedInputStream solved the problem.
SmbFile sFile = new SmbFile(path, authentication);
BufferedInputStream buf = new BufferedInputStream(new SmbFileInputStream(sFile));