You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove DataSlice structure in Blob backend implementation #12249
During the PR #11875, it is found that DataSlice is not very useful anymore because in most cases, the user of BlobImpl::new_from_slice simply initializes DataSlice with a vector of bytes without specifying the start and end boundaries.
Thus we can simplify the design here and make BlobImpl::Memory holding only a Vec<u8> and let further slicing only be done through the Blob::Slice interface. Another good thing about this is that we can also simplify Blob::promote_to_file (by not doing RelativePos::from_abs_range anymore).
Activity
izgzhen commentedon Jul 5, 2016
cc @Manishearth
Auto merge of #12258 - izgzhen:remove-data-slice, r=Manishearth