JCIFS: file retrieval is too slow to be usable

后端 未结 7 1497
北海茫月
北海茫月 2020-12-05 05:57

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         


        
7条回答
  •  时光取名叫无心
    2020-12-05 06:31

    The solution added by @Xolve0 worked for me as well. The buffer issue in the SmbFileInput is also present when trying to write files. I used the same BufferedInputStream(new SmbFileInputStream(sFile)) to make the time execution decrease from 90secs to less than a second for a plain text file.

    A quick way to identify this specific issue would be to track the time between the opening of the JCIFS path and the write of the file itself.

提交回复
热议问题