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 BD67E6F3E0; Wed, 23 Jun 2021 22:13:14 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org BD67E6F3E0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1624475594; bh=IwVpTkhdqwGn401Mv6Z93qw/LTd4bz1MgcUFYBkxaMg=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=RK6ZC6FIFW3cw+qM9abA1U8pKmlM95EaIy3VH4RhUb0PnpS+yU6Qi682WwKlC6Iw0 mKbWHYFp/dSuO2ldTNNnTkaNidR9HMuosIzYffn8V+jMPXxGzctzDAVgd8c33fwTTk 15lMMpc+iCRybNrO6fVrc5uk86KQH7wp6P0tvvEk= Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [94.100.177.95]) (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 ED4766EC58 for ; Wed, 23 Jun 2021 22:13:12 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org ED4766EC58 Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1lw8JD-00086m-Hz; Wed, 23 Jun 2021 22:13:11 +0300 To: Vladislav Shpilevoy , Cyrill Gorcunov , Roman Khabibov Cc: Alexander Turenko , tarantool-patches@dev.tarantool.org Date: Wed, 23 Jun 2021 22:12:38 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD954DFF1DC42D673FB703477AD6D36A6E3C7EF2853D6A1C7C1182A05F538085040917BC740DA1CC7B3C23FD5D552F655E23B42F0BA8942A6E1CAA4E774F5188F1A X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7D4EF26BAC91EEE7FEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006370BACBAB4C30C4AEB8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8269ED683165AC9AA320CBEB60918EEF2117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCF1175FABE1C0F9B6A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352033AC447995A7AD182CC0D3CB04F14752D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EED76C6ED7039589DE1B0CC92B5A49C88ED8FC6C240DEA7642DBF02ECDB25306B2B78CF848AE20165D0A6AB1C7CE11FEE362B3BD3CC35DA588040F9FF01DFDA4A8C4224003CC836476EA7A3FFF5B025636E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F7900637BC468E7E89D8C5D6EFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A24209795067102C07E8F7B195E1C978319E86B45BBB3EF42ABE75460A6CDB2857 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CDFD85F345618D5688A5D3868BBD8BBF22D4EBF5C418587429C2B6934AE262D3EE7EAB7254005DCED862339F99E611B5B9510FB958DCE06DB6ED91DBE5ABE359ADBCB5631A0A9D21F8D1F0E447259586B93EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D348BF433665406F390F684306B4741F2EF2A7A867373220D1E5C4AB5D8093C01C56300C35AB90812DD1D7E09C32AA3244C40819E492D811E4BF8441FADD84A1874858039643087248083B48618A63566E0 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXgCFZEybMaxpGAdsBDTilHr X-Mailru-Sender: FFAA8E4AEE17E37C3731A083A1A85ADE1AF59A4BE71DD32452412032C329E917B7EA9FE7735C3DBFC664A44C781FCEA7C77752E0C033A69EDF9F2CE1E9CF805D8CD356D4F938FF726C18EFA0BB12DBB0 X-Mras: Ok Subject: [Tarantool-patches] [PATCH 0/4] RFC: Isolate serializer helpers 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: Alexander Turenko via Tarantool-patches Reply-To: Alexander Turenko Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Moved the serializer helpers into its own compilation unit, add some comments and a basic test: everything is just to simplify diving into this code. Guys, please, look, whether it seems useful enough to include into tarantool's mainline? Should we name it serializer.[ch] or somehow like serializer_helpers.[ch]? Part of https://github.com/tarantool/tarantool/issues/3228 Branch: Totktonada/gh-3228-extract-serializer-helpers Alexander Turenko (4): lua: move serializer helpers into its own file lua: move luaL_newserializer() comment into header lua: split serializer functions into sections test: add a basic unit test for serializer helpers src/CMakeLists.txt | 1 + src/box/lua/call.c | 1 + src/box/lua/console.c | 1 + src/box/lua/execute.c | 1 + src/box/lua/info.c | 1 + src/box/lua/init.c | 2 + src/box/lua/serialize_lua.c | 1 + src/box/lua/slab.c | 1 + src/box/lua/tuple.c | 1 + src/box/sql/mem.c | 1 + src/lua/decimal.c | 2 + src/lua/fiber.c | 1 + src/lua/init.c | 5 + src/lua/msgpack.c | 1 + src/lua/msgpack.h | 1 + src/lua/pickle.c | 1 + src/lua/serializer.c | 653 ++++++++++++++++++++++++++++++ src/lua/serializer.h | 376 +++++++++++++++++ src/lua/utils.c | 601 +-------------------------- src/lua/utils.h | 292 +------------ test/unit/CMakeLists.txt | 3 + test/unit/serializer.c | 444 ++++++++++++++++++++ test/unit/serializer.result | 135 ++++++ third_party/lua-cjson/lua_cjson.c | 1 + third_party/lua-yaml/lyaml.cc | 1 + 25 files changed, 1639 insertions(+), 889 deletions(-) create mode 100644 src/lua/serializer.c create mode 100644 src/lua/serializer.h create mode 100644 test/unit/serializer.c create mode 100644 test/unit/serializer.result -- 2.31.1