From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 7B5B26EC40; Thu, 19 Aug 2021 12:58:32 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 7B5B26EC40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1629367112; bh=M6INJej3AAMrBIaMyQgM2T9VY/Z4CP1e9glcsgqjD5Q=; h=To:References:Date:In-Reply-To:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=kbFyCAbzAVs60ifDCNHSwls/wcmE9artOptEwyU4PfwmhjuaeiPaiEFgaJ0R8zADp YybMpVSNawtG0JR52fhHbWbIZJaRPMTLH5kCbxh8YVKT1XeTCsQFgT9dvbs8FbC4VL HyZvn7h2XEPRq7aixNe2OscvXwboCL94O0vwnQcg= Received: from smtp44.i.mail.ru (smtp44.i.mail.ru [94.100.177.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 743276EC40 for ; Thu, 19 Aug 2021 12:58:31 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 743276EC40 Received: by smtp44.i.mail.ru with esmtpa (envelope-from ) id 1mGeof-0003T8-Vy; Thu, 19 Aug 2021 12:58:30 +0300 To: Timur Safin , vdavydov@tarantool.org, tarantool-patches@dev.tarantool.org References: <003a95dc7856f488a551eacb66b0920629a62ab7.1629341071.git.tsafin@tarantool.org> Message-ID: <313f37b8-8305-f713-e28b-ed8f29c06228@tarantool.org> Date: Thu, 19 Aug 2021 12:58:29 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <003a95dc7856f488a551eacb66b0920629a62ab7.1629341071.git.tsafin@tarantool.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: ru X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92087353F0EC44DD972FF4A7D76DB5E242D14FEF1BD8BF4AC182A05F5380850400CC018B1F1C0A6112779E4C59392AF95F2B33C8D1A7894D37C0DD454E9243FBA X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE749E89BD568380EECC2099A533E45F2D0395957E7521B51C2CFCAF695D4D8E9FCEA1F7E6F0F101C6778DA827A17800CE752E71F0C64B7C834EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BBCA57AF85F7723F225C9ABD6E2D95E25D468CC3A5D237B19CC7F00164DA146DAFE8445B8C89999728AA50765F7900637F6B57BC7E64490618DEB871D839B7333395957E7521B51C2DFABB839C843B9C08941B15DA834481F8AA50765F790063783E00425F71A4181389733CBF5DBD5E9B5C8C57E37DE458B9E9CE733340B9D5F3BBE47FD9DD3FB595F5C1EE8F4F765FC72CEEB2601E22B093A03B725D353964B0B7D0EA88DDEDAC722CA9DD8327EE4930A3850AC1BE2E7352686C055BC15B7FBC4224003CC83647689D4C264860C145E X-C1DE0DAB: 0D63561A33F958A5B8F7DCEADEC5385D2DC2366F546CAB402D54721B92B2C77CD59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA758B25CD4253D1D611410CA545F18667F91A7EA1CDA0B5A7A0 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3455049D7B43D89D64000230B346AEF5DC0973FAAA23154AF49795912C1F50344DC87F57A2C0CF5C121D7E09C32AA3244C8B2F350541C380DE8191DFBA7C6B097FD08D48398F32B4A6DCA3B3C10BC03908 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojGSxK+6r6oBEN6NthivoXjA== X-Mailru-Sender: 3B9A0136629DC9125D61937A2360A446D998DBCFC3C0646F016C93221675B73A7ABE3E11782F4E47424AE0EB1F3D1D21E2978F233C3FAE6EE63DB1732555E4A8EE80603BA4A5B0BC112434F685709FCF0DA7A0AF5A3A8387 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH v6 2/5] box, datetime: messagepack support for datetime X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Serge Petrenko via Tarantool-patches Reply-To: Serge Petrenko Cc: v.shpilevoy@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" 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