Xuanwo commented on issue #3725:
URL:
https://github.com/apache/incubator-opendal/issues/3725#issuecomment-1846586415
> 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;
```
--
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]