[Tarantool-patches] [PATCH v6 2/5] box, datetime: messagepack support for datetime

Serge Petrenko sergepetrenko at tarantool.org
Thu Aug 19 12:58:29 MSK 2021



19.08.2021 05:56, Timur Safin пишет:
> Serialize `struct datetime` as newly introduced MP_EXT type.
> It saves 1 required integer field and upto 2 optional
> unsigned fields in very compact fashion.
> - secs is required field;
> - but nsec, offset are both optional;
>
> * json, yaml serialization formats, lua output mode
>    supported;
> * exported symbols for datetime messagepack size calculations
>    so they are available for usage on Lua side.
>
> * As a bonus we introduce core/mp_utils.h with set of helpers
>    which simplify working with mp_sizeof*/mp_encode_*/mp_decode_*
>    functions regardless of a signedness of an integer data we
>    deal with.
>
> Part of #5941
> Part of #5946

Thanks! LGTM.


-- 
Serge Petrenko



More information about the Tarantool-patches mailing list