Buffered Background InputStream Implementations

后端 未结 2 1026
情歌与酒
情歌与酒 2021-02-08 23:33

I\'ve written background InputStream (and OutputStream) implementations that wrap other streams, and read ahead on a background thread, primarily allow

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-09 00:09

    Sounds interesting. I've never run across anything that does this out of the box but it makes perfect sense to try and use an idle core for the compression if it's available.

    Perhaps you could make use of Commons I/O - it is a well tested lib which could help handle some of the more boring stuff and let you focus on extending the cool parallel parts. Maybe you could even contribute your code to the Commons project ;-)

提交回复
热议问题