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 407952F227 for ; Tue, 21 May 2019 12:56:49 -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 W4sd5wI3uu9C for ; Tue, 21 May 2019 12:56:49 -0400 (EDT) Received: from smtp63.i.mail.ru (smtp63.i.mail.ru [217.69.128.43]) (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 9455A2F19C for ; Tue, 21 May 2019 12:56:48 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH v2 0/2] buffer: port static allocator to Lua From: Vladislav Shpilevoy References: Message-ID: <8d1225f2-58fd-592d-0d6e-11bd9b4139c0@tarantool.org> Date: Tue, 21 May 2019 19:56:44 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 Pushed to the master. On 19/05/2019 01:15, Vladislav Shpilevoy wrote: > 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 >