New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osd: utime_t, eversion_t, osd_stat_sum_t encoding optimization #6902
Conversation
@liewegas , please review again. Thanks. |
dd8fa7c
to
e4de246
Compare
Please update the object_stat_sum_t encoding in a single commit (that one is trivial). pg_stat_t is harder because I'm pretty sure pg_t parent; won't stay aligned. But I suspect we'll get most of the win here just with object_stat_sum_t, even if we don't touch pg_stat_t... |
@liewegas , what about reorder the pg_stat_t, so we use two steps to encode the struct. Using two step would be more easier for adding new members.
The new strategy is XinzeChi@b53f087. |
@XinzeChi I think teh pg_stat strategy makes sense, but we should do it separately as a follow-on, and overlap it with a feature bit we spend on something else (feature bits are getting scarce). Let's leave it off this PR and get the other 3 types done first as they are simple. |
e4de246
to
e4c015b
Compare
there is no padding between tv_sec and tv_nsec, no matter 32-bit or 64-bit machine. Signed-off-by: Xinze Chi <xinze@xsky.com>
There is no padding between version and epoch, no matter 32-bit or 64-bit machine. Signed-off-by: Xinze Chi <xinze@xsky.com>
Signed-off-by: Xinze Chi <xinze@xsky.com>
e4c015b
to
8ad665d
Compare
@liewegas , I See. Thanks for your quick reply. Please review again. Thanks. |
lgtm! |
osd: utime_t, eversion_t, osd_stat_sum_t encoding optimization Reviewed-by: Sage Weil <sage@redhat.com>
Signed-off-by: Xinze Chi xinze@xsky.com