Buffered Background InputStream Implementations

后端 未结 2 1027
情歌与酒
情歌与酒 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-08 23:58

    I'd be interested. I've thought through a similar project, but couldn't figure out how to handle pieces that finish compression out of order.

    0 讨论(0)
  • 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 ;-)

    0 讨论(0)
提交回复
热议问题