Java multithreaded file downloading performance

前端 未结 4 1809
难免孤独
难免孤独 2020-12-13 10:24

Having recently worked on a project which required some more IO interaction than I\'m used to, I felt like I wanted to look past the regular libraries (Commons IO, in partic

4条回答
  •  旧时难觅i
    2020-12-13 11:12

    My immediate thought for best performance on Windows would be to use IO completions ports. What I don't know is (a) whether there are similar concepts in other OSes, and (b) whether there are any suitable Java wrappers? If portability isn't important to you, though, it may be possible to roll your own wrapper with JNI.

提交回复
热议问题