numinnex opened a new pull request, #3020:
URL: https://github.com/apache/iggy/pull/3020

   Refactors the partition to use `Message<H>` backed by prefix/tail buffer. 
The prefix is an `copy-on-write` buffer, that aliases the tail, detaches itself 
on first mutable access.  It replaces the `TwoHalves` design, by inlining it's 
internals and introducing `copy-on-write` for the prefix part. Previosuly the 
`prefix` didn't implement `copy-on-write`, rather performed an deep copy on 
`Clone`, but this made the storage reads into an `Message` problematic, as 
there is no way to guarantee uniqueness of the `tail` (If we read from the 
cache we are guaranteed atleast 2 owners -- the cache storage and `Message` 
itself). 
   
   


-- 
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]

Reply via email to