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 560196EC57; Wed, 28 Jul 2021 00:24:19 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 560196EC57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1627421059; bh=3dNsRcXDlEsumx7yFtyhupejEQvQXaxXxXE12Xm1O9I=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=tojDNKmuDxxVuppfaRn9Y26pgQx1ZgA0u0P8G+7JB4dQp0md6O0wtyMK5m0QZRcg9 lVkO00aDhNN+RAPxF9uYSd/lXxjb3g2od6MGAk6Nr+iFCjqQeuR548E92ZLElCqetu P3DxJsd5garLOsWqGSadeM69trWtGnX/U0DPL8do= Received: from smtpng3.i.mail.ru (smtpng3.i.mail.ru [94.100.177.149]) (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 B8A746EC55 for ; Wed, 28 Jul 2021 00:24:17 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org B8A746EC55 Received: by smtpng3.m.smailru.net with esmtpa (envelope-from ) id 1m8UYi-0005in-Ph; Wed, 28 Jul 2021 00:24:17 +0300 To: tarantool-patches@dev.tarantool.org, gorcunov@gmail.com, sergos@tarantool.org Date: Tue, 27 Jul 2021 23:24:10 +0200 Message-Id: X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD941C43E597735A9C351B198F4576AC7B21928AAE70459C21B182A05F538085040B1CB37413C21E2B20A53340DC388F5F20DBB15BE346735A5386EE8D68A9CB369 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE720512D700D076E85EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637B05885A782BE20C5EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BBCA57AF85F7723F27F471589C13D911A07A6F84B5AE32A8FCC7F00164DA146DAFE8445B8C89999728AA50765F790063767B9C6E70FBE8DD8389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC8C6602A96AF88C695F6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8BDCE939D40DBB93CA75ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A213B5FB47DCBC3458834459D11680B505E2552B0CE6D9DCA41288C59D8F606168 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C7BEA09003D200E08D1081FEBA91DB7FA45EBED8B00FE727A9C2B6934AE262D3EE7EAB7254005DCEDB7EFC714DBEEC1D51E0A4E2319210D9B64D260DF9561598F01A9E91200F654B08F3D2DDDCA87B9828E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34B7CBFF60649FF266AD30F0E01D2D14FF18DF9B20AE06D05D859E2FC0ECA3F1B09F86A7202F57F1421D7E09C32AA3244C97CE573DC96051702B49E58C8CC35272C86C126E7119A0FEFACE5A9C96DEB163 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojiF1u9eOpfTS8287bAz0IPQ== X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5DCB6DAA4FDCC144D2F888EF25B6BBCB5E3841015FED1DE5223CC9A89AB576DD93FB559BB5D741EB963CF37A108A312F5C27E8A8C3839CE0E267EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH 0/5] Static buf in Lua, part 3 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: Vladislav Shpilevoy via Tarantool-patches Reply-To: Vladislav Shpilevoy Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Here we go again. I see that Lua UUID helpers have L suffix and decimal helpers do not. Have no idea why, but decided not to change it here since it is not related to the patch goal. I validated other usages of tt_uuid_str(), decimal_str(), tt_sprintf(), tt_statuc_buf(), tuple_str(), mp_str() and some others - they all seem to be fine now. But you can never say for sure. Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-6259-static_buf-part3 Issue: https://github.com/tarantool/tarantool/issues/6259 Vladislav Shpilevoy (5): uuid: introduce and use luaL_pushuuidstr() info: use luaL_pushuuidstr() for box.info uuids decimal: rename decimal_to_string to decimal_str decimal: introduce decimal_to_string decimal: introduce and use lua_pushdecimalstr() .../unreleased/gh-6259-static-buf-in-lua.md | 5 + src/box/lua/info.c | 8 +- src/box/lua/net_box.c | 4 +- src/box/lua/serialize_lua.c | 2 +- src/lib/core/decimal.c | 10 +- src/lib/core/decimal.h | 14 +- src/lib/core/mp_decimal.c | 4 +- src/lua/decimal.c | 14 +- src/lua/decimal.h | 3 + src/lua/utils.c | 13 + src/lua/utils.h | 3 + ...> gh-5632-6050-6259-gc-buf-reuse.test.lua} | 85 +++- test/unit/decimal.c | 9 +- test/unit/decimal.result | 394 +++++++++--------- third_party/lua-cjson/lua_cjson.c | 2 +- third_party/lua-yaml/lyaml.cc | 2 +- 16 files changed, 360 insertions(+), 212 deletions(-) create mode 100644 changelogs/unreleased/gh-6259-static-buf-in-lua.md rename test/app-tap/{gh-5632-6050-gc-buf-reuse.test.lua => gh-5632-6050-6259-gc-buf-reuse.test.lua} (68%) -- 2.24.3 (Apple Git-128)