WenyXu commented on issue #3725:
URL:
https://github.com/apache/incubator-opendal/issues/3725#issuecomment-1846602001
> > Can we alleviate the problem by adding a cache layer between
`ErrorContextLayer` and `CompleteLayer`? or before the `ErrorContextLayer`.
>
> I don't think that's a good idea; we shouldn't enable a layer by default
that could introduce additional costs.
>
> I sometimes feel like we can have the followings API:
>
> ```rust
> // Create a reader with 8MiB buffer
> let r = op.reader_with("path").buffer(8 * 1024 * 1024).await;
>
> // Create a reader with 4 concurrently fetched 8MiB buffer
> let r = op.reader_with("path").buffer(8 * 1024 * 1024).concurrent(4).await;
> ```
>
> Those API can be implemented in two RFCs:
>
> * Frist, we will add `buffer` in read API, allow underlying reader fecth
data at the size of buffer.
> * Second, we can add `concurrent` in read API, allow user to fecth data in
concurrent way.
Cool, I would like to have a try.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]