From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A5A0E2EFDE for ; Sat, 18 May 2019 18:15:13 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xdWxHoGXz5Fe for ; Sat, 18 May 2019 18:15:13 -0400 (EDT) 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 turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 5EE082EFBD for ; Sat, 18 May 2019 18:15:13 -0400 (EDT) From: Vladislav Shpilevoy Subject: [tarantool-patches] [PATCH v2 0/2] buffer: port static allocator to Lua Date: Sun, 19 May 2019 01:15:07 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: kostja@tarantool.org The patchset allows to use the static allocator from Lua, and optimizes some commonly appearing problems with passing parameters into FFI functions by a pointer. Changes in V2: - Split in 2 commits. V1: https://www.freelists.org/post/tarantool-patches/PATCH-11-buffer-port-static-allocator-to-Lua Branch: http://github.com/tarantool/tarantool/tree/gerold103/static-allocator-lua Vladislav Shpilevoy (2): buffer: port static allocator to Lua buffer: replace all ffi.new(type[1]) with cached union extra/exports | 2 ++ src/CMakeLists.txt | 1 + src/box/lua/schema.lua | 3 +- src/lua/buffer.c | 42 +++++++++++++++++++++++++++ src/lua/buffer.lua | 61 ++++++++++++++++++++++++++++++++++++++++ src/lua/crypto.lua | 22 +++++++-------- src/lua/digest.lua | 7 +++-- src/lua/fio.lua | 3 +- src/lua/init.c | 2 +- src/lua/msgpackffi.lua | 50 +++++++++++++------------------- src/lua/socket.lua | 36 ++++++++++++++---------- src/lua/string.lua | 10 ++++--- src/lua/uri.lua | 7 +++-- src/lua/uuid.lua | 9 +++--- test/app/buffer.result | 53 ++++++++++++++++++++++++++++++++++ test/app/buffer.test.lua | 23 +++++++++++++++ 16 files changed, 256 insertions(+), 75 deletions(-) create mode 100644 src/lua/buffer.c create mode 100644 test/app/buffer.result create mode 100644 test/app/buffer.test.lua -- 2.20.1 (Apple Git-117)