Is there a workaround for Java's poor performance on walking huge directories?

前端 未结 10 807
予麋鹿
予麋鹿 2020-12-02 23:30

I am trying to process files one at a time that are stored over a network. Reading the files is fast due to buffering is not the issue. The problem I have is just listing

10条回答
  •  甜味超标
    2020-12-03 00:21

    If you need to eventually process all files, then having Iterable over String[] won't give you any advantage, as you'll still have to go and fetch the whole list of files.

提交回复
热议问题