Xuanwo commented on PR #2143:
URL:
https://github.com/apache/incubator-opendal/pull/2143#issuecomment-1525514830
I don't like current API:
- Users should be able to specify the buffer size during `write` operation.
- There are different buffer size/limit here, we should make the behavior
more clear.
- S3's buffer size requires every write size `>= size`
- GCS's buffer size requires every write size `== size` to align with `256
KiB`
For my current understanding, there are at least the following buffer
related sizes:
- the `at_least_size` for write operation: every write will have at least
`n` bytes
- the `exact_size` for write operation: every write will have exactly `n`
bytes
- the `at_most_size` for write operation: storage can buffer at most `n`
bytes before write
I'm also seeking for better names. Any ideas?
--
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]