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
we perform the same calculations on various types all over the place in the sled codebase, in ad-hoc error-prone ways that cost time when debugging, refactoring, or implementing any change that may touch on them.
we frequently convert between SegmentId, Lsn, LogOffset, usize, PageId, i64 and u64.
we perform the same calculations on various types all over the place in the sled codebase, in ad-hoc error-prone ways that cost time when debugging, refactoring, or implementing any change that may touch on them.
we frequently convert between
SegmentId
,Lsn
,LogOffset
,usize
,PageId
,i64
andu64
.we can take ideas from https://yoric.github.io/post/uom.rs/, https://docs.rs/uom/0.26.0/uom/index.html, etc...
goals:
AtomicI64
to track stability, but maybe this is possible to do in a safer way)TryInto
/TryFrom
as possibleThe text was updated successfully, but these errors were encountered: