Buffered Background InputStream Implementations

后端 未结 2 1234
没有蜡笔的小新
没有蜡笔的小新 2021-02-08 23:57

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:11

    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 ;-)

提交回复
热议问题