Skip to content

Rounding functions in storage.rs differ a little, intentional? #308

Answered by jpochyla
luukvanderduim asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @luukvanderduim, thanks for looking into Psst's code-base!

Honestly, I think we could remove the functions entirely, as there's no 4-byte-alignment requirement now for the chunk-fetching mechanism (unlike before).

Also these functions seem perfect candidates for #[inline], as they are very small and do not really warrant a function call I think?

#[inline] matters only when inlining across crates, which is not the case here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@luukvanderduim
Comment options

Answer selected by luukvanderduim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants