numinnex opened a new pull request, #2944: URL: https://github.com/apache/iggy/pull/2944
This PR introduces an `TwoHalves` buffer, that uses `Vec<u8>` instead of `Bytes` as it's underlying storage. TwoHalves splits the underlying storage into two parts (mutable and non-mutable one). The non-mutable part uses thread-safe reference counting for cheap sharing (Bytes like), where the mutable one is copied over on each clone. In the initial state both the mutable and non-mutable parts point to the same allocation using exactly the same control block, the diverge happens on first `clone` when the mutable part gets copied over and re-allocated entirely. -- 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]
